4 writes to PropertyType
System.Configuration.ConfigurationManager (4)
System\Configuration\ApplicationSettingsBase.cs (2)
451
settingsProperty.
PropertyType
= propertyInfo.PropertyType;
593
_init.
PropertyType
= null;
System\Configuration\SettingsProperty.cs (2)
38
PropertyType
= propertyType;
71
PropertyType
= propertyToCopy.PropertyType;
12 references to PropertyType
System.Configuration.ConfigurationManager (12)
System\Configuration\SettingsBase.cs (1)
83
if (propertyValue != null && !pp.
PropertyType
.IsInstanceOfType(propertyValue))
System\Configuration\SettingsProperty.cs (1)
71
PropertyType = propertyToCopy.
PropertyType
;
System\Configuration\SettingsPropertyValue.cs (10)
41
if (_value != null && !Property.
PropertyType
.IsPrimitive && !(_value is string) && !(_value is DateTime))
90
value = GetObjectFromString(Property.
PropertyType
, Property.SerializeAs, (string)SerializedValue);
118
if (value != null && !Property.
PropertyType
.IsAssignableFrom(value.GetType())) // is it the correct type
128
if (Property.
PropertyType
.IsValueType)
129
return TypeUtil.CreateInstance(Property.
PropertyType
);
141
value = GetObjectFromString(Property.
PropertyType
, Property.SerializeAs, (string)Property.DefaultValue);
149
if (value != null && !Property.
PropertyType
.IsAssignableFrom(value.GetType())) // is it the correct type
156
if (Property.
PropertyType
== typeof(string))
164
value = TypeUtil.CreateInstance(Property.
PropertyType
);
226
return ConvertObjectToString(_value, Property.
PropertyType
, Property.SerializeAs, Property.ThrowOnErrorSerializing);