📄 sipcparameter.cs
字号:
namespace Imps.Base.Sipc
{
using System;
public class SipcParameter
{
private string _name;
private string _value;
public SipcParameter()
{
this._name = string.Empty;
this._value = string.Empty;
}
public SipcParameter(string name)
{
this._name = string.Empty;
this._value = string.Empty;
this.Name = name;
}
public SipcParameter(string name, string value)
{
this._name = string.Empty;
this._value = string.Empty;
this.Name = name;
this.Value = value;
}
public override string ToString()
{
if (this._name.Length < 1)
{
return string.Empty;
}
if (this._value.Length < 1)
{
return this._name;
}
return string.Format("{0}={1}", this._name, this._value);
}
public string Name
{
get
{
return this._name;
}
set
{
this._name = (value == null) ? string.Empty : value.Trim().ToLower();
}
}
public string Value
{
get
{
return this._value;
}
set
{
this._value = (value == null) ? string.Empty : value.Trim();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -