1 write to Type
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationProperty.cs (1)
245
Type
= type;
25 references to Type
System.Configuration.ConfigurationManager (25)
System\Configuration\ConfigurationElement.cs (9)
128
ConfigurationElement childElement = CreateElement(prop.
Type
);
132
if (typeof(ConfigurationElementCollection).IsAssignableFrom(prop.
Type
))
775
if ((result != null) && typeof(ConfigurationElement).IsAssignableFrom(result.
Type
))
777
PropertiesFromType(result.
Type
, out _);
1228
if (typeof(ConfigurationElement).IsAssignableFrom(validProp.
Type
))
1239
if (!typeof(ConfigurationElement).IsAssignableFrom(validProp.
Type
))
1321
typeof(ConfigurationElement).IsAssignableFrom(propToLock.
Type
)) ||
1325
!typeof(ConfigurationElement).IsAssignableFrom(propToLock.
Type
))
1642
if ((propToLock != null) && typeof(ConfigurationElement).IsAssignableFrom(propToLock.
Type
))
System\Configuration\ConfigurationLockCollection.cs (2)
172
if (!typeof(ConfigurationElement).IsAssignableFrom(propToLock?.
Type
))
178
if (typeof(ConfigurationElement).IsAssignableFrom(propToLock?.
Type
))
System\Configuration\ConfigurationProperty.cs (13)
176
_isConfigurationElementType = typeof(ConfigurationElement).IsAssignableFrom(
Type
);
258
if (!Validator.CanValidate(
Type
))
278
if (!
Type
.IsInstanceOfType(value))
301
if (defaultValue is string && (
Type
!= typeof(string)))
317
if (
Type
== typeof(string))
321
else if (
Type
.IsValueType)
323
defaultValue = TypeUtil.CreateInstance(
Type
);
351
if (
Type
== typeof(bool))
385
if (
Type
.IsEnum)
388
_converter = new GenericEnumConverter(
Type
);
390
else if (
Type
.IsSubclassOf(typeof(ConfigurationElement)))
398
_converter = TypeDescriptor.GetConverter(
Type
);
405
throw new ConfigurationErrorsException(SR.Format(SR.No_converter, Name,
Type
.Name));
System\Configuration\PropertyInformation.cs (1)
86
public Type Type => Prop.
Type
;