cascadingdropdownnamevalue.cs

来自「AJAX 应用 实现页面的无刷新」· CS 代码 · 共 42 行

CS
42 行
字号
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.


using System;

namespace AjaxControlToolkit
{
    [Serializable]
    public class CascadingDropDownNameValue
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "Necessary for web service serialization")]
        public string name;

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "Necessary for web service serialization")]
        public string value;

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "Necessary for web service serialization")]
        public bool isDefaultValue;


        public CascadingDropDownNameValue()
        {
        }

        public CascadingDropDownNameValue(string name, string value)
        {
            this.name = name;
            this.value = value;
        }

        public CascadingDropDownNameValue(string name, string value, bool defaultValue)
        {
            this.name = name;
            this.value = value;
            this.isDefaultValue = defaultValue;
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?