1 write to Type
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationProperty.cs (1)
241
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)
172
_isConfigurationElementType = typeof(ConfigurationElement).IsAssignableFrom(
Type
);
254
if (!Validator.CanValidate(
Type
))
274
if (!
Type
.IsInstanceOfType(value))
297
if (defaultValue is string && (
Type
!= typeof(string)))
313
if (
Type
== typeof(string))
317
else if (
Type
.IsValueType)
319
defaultValue = TypeUtil.CreateInstance(
Type
);
347
if (
Type
== typeof(bool))
381
if (
Type
.IsEnum)
384
_converter = new GenericEnumConverter(
Type
);
386
else if (
Type
.IsSubclassOf(typeof(ConfigurationElement)))
394
_converter = TypeDescriptor.GetConverter(
Type
);
401
throw new ConfigurationErrorsException(SR.Format(SR.No_converter, Name,
Type
.Name));
System\Configuration\PropertyInformation.cs (1)
86
public Type Type => Prop.
Type
;