惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
MongoDB | Blog
MongoDB | Blog
V
V2EX
博客园 - 【当耐特】
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
B
Blog
V
Visual Studio Blog
D
DataBreaches.Net
C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs

博客园 - Kent

55种网页常用小技巧 - Kent - 博客园 (转文)IP Domain etc. javascript setTimeout 和 setInterval CodeFile、Src、Codebehind三者的差别解释 - Kent - 博客园 Microsoft SQL Server 2005的国际功能(转贴) SQL Server 中易混淆的数据类型 关于 SQL Server 使用 Unicode 数据 Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法 SQLserver2005中的四个评价函数 常用DOS命令(转贴) 正则表达式(regular expression) C#: 为datatable添加column的方法 C#: 三种符号的区别 C#:List 取代数组的方法 javascript:parseFloat javascript:trim function javascript: split & array javascript:eval function Javascript: Replace function.
类的一般标准写法
Kent · 2006-09-23 · via 博客园 - Kent

namespace System.Option
{
    public enum SearchDataType
    {
        Unknown, String, Integer, Float, Datetime
    }

    public class AdvancedSearchCondition
    {
        private string _DisplayName = string.Empty;
        private string _FieldName = string.Empty;
        private SearchDataType _DataType = SearchDataType.Unknown;
        private string _Value = string.Empty;

        public string DisplayName
        {
            get { return this._DisplayName; }
            set { this._DisplayName = value; }
        }

        public string FieldName
        {
            get { return this._FieldName; }
            set { this._FieldName = value; }
        }

        public SearchDataType DataType
        {
            get { return this._DataType; }
            set { this._DataType = value; }
        }

        public string Value
        {
            get { return this._Value; }
            set { this._Value = value; }
        }

        public AdvancedSearchCondition(string displayName, string fieldName, SearchDataType dataType)
        {
            this.DisplayName = displayName;
            this.FieldName = fieldName;
            this.DataType = dataType;
        }
    }
}