【C# winform 代码】属性和方法

时间:2020-09-24 03:25:55
【文件属性】:
文件名称:【C# winform 代码】属性和方法
文件大小:45KB
文件格式:RAR
更新时间:2020-09-24 03:25:55
C# winform 属性 方法 Microsoft Visual Studio 2010做的C# winform属性和方法例子,主要代码: public class Person { public string sName; private string sTheSex; public string sSex { get { return sTheSex; } set { if (value == "男" || value == "女") { sTheSex = value; } else { sTheSex = "【未知】"; } } } public string f_getTalk(string sType) { string sReturn=""; switch (sType) { case "自我介绍": sReturn = "【自我介绍】"; break; case "发言": sReturn = "【发言】"; break; case "": sReturn = "【空】"; break; default: sReturn = "【未知】"; break; } return sReturn; } }
【文件预览】:
属性和方法
----WindowsFormsApplication1()
--------WindowsFormsApplication1()
--------WindowsFormsApplication1.sln(914B)
--------WindowsFormsApplication1.suo(21KB)

网友评论