📄 connection.cs
字号:
using System;
using System.Net;
using System.Net.Sockets;
namespace SocketLibrary
{
/// <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(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 + -