System.Configuration.ConfigurationProperty.ConfigurationProperty C# (CSharp) Метод

ConfigurationProperty() публичный Метод

public ConfigurationProperty ( String name, Type type ) : System
name String
type System.Type
Результат System
        public ConfigurationProperty(String name, Type type) {
            object defaultValue = null;
            
            ConstructorInit(name, type, ConfigurationPropertyOptions.None, null, null);

            if (type == typeof(string)) {
                defaultValue = String.Empty;
            }
            else if (type.IsValueType) {
                defaultValue = TypeUtil.CreateInstanceWithReflectionPermission(type);
            }
            SetDefaultValue(defaultValue);
        }

Same methods

ConfigurationProperty::ConfigurationProperty ( PropertyInfo info ) : System
ConfigurationProperty::ConfigurationProperty ( String name, Type type, Object defaultValue ) : System
ConfigurationProperty::ConfigurationProperty ( String name, Type type, Object defaultValue, ConfigurationPropertyOptions options ) : System
ConfigurationProperty::ConfigurationProperty ( String name, Type type, Object defaultValue, TypeConverter typeConverter, ConfigurationValidatorBase validator, ConfigurationPropertyOptions options ) : System
ConfigurationProperty::ConfigurationProperty ( String name, Type type, Object defaultValue, TypeConverter typeConverter, ConfigurationValidatorBase validator, ConfigurationPropertyOptions options, string description ) : System