connection.cs

来自「.net2003 C# 基于pda的winsock通讯」· CS 代码 · 共 37 行

CS
37
字号
using System;
using System.Net;
using System.Net.Sockets;

namespace SmartDeviceApplication5
{
	/// <summary>
	/// Connection 的摘要说明。
	/// </summary>
	public class Connection
	{
		public NetworkStream NetworkStream {
			get{return _networkStream;}
			set{_networkStream = value;}
		}
		private NetworkStream _networkStream;
		public string ConnectionName {
			get{return _connectionName;}
			set{_connectionName = value;}
		}
		private string _connectionName;
		public Connection()
		{
			this._networkStream = null;
			this._connectionName = null;
		}
		public Connection(NetworkStream networkStream,string connectionName)
		{
			this._networkStream = networkStream;
			this._connectionName = connectionName;

		}
		public Connection(NetworkStream networkStream):this(networkStream,string.Empty) {
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?