⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connection.cs

📁 .net2003 C# 基于pda的winsock通讯
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -