1 write to Property
System.Configuration.ConfigurationManager (1)
System\Configuration\SettingsPropertyValue.cs (1)
28
Property
= property;
25 references to Property
System.Configuration.ConfigurationManager (25)
System\Configuration\LocalFileSettingsProvider.cs (1)
157
SettingsProperty setting = value.
Property
;
System\Configuration\SettingsBase.cs (1)
133
if (pp.
Property
.Provider == prov)
System\Configuration\SettingsPropertyValue.cs (23)
20
public string Name =>
Property
.Name;
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
126
if (
Property
.DefaultValue == null ||
Property
.DefaultValue.ToString() == "[null]")
128
if (
Property
.PropertyType.IsValueType)
129
return TypeUtil.CreateInstance(
Property
.PropertyType);
133
if (!(
Property
.DefaultValue is string))
135
value =
Property
.DefaultValue;
141
value = GetObjectFromString(
Property
.PropertyType,
Property
.SerializeAs, (string)
Property
.DefaultValue);
145
throw new ArgumentException(SR.Format(SR.Could_not_create_from_default_value,
Property
.Name, e.Message));
149
if (value != null && !
Property
.PropertyType.IsAssignableFrom(value.GetType())) // is it the correct type
150
throw new ArgumentException(SR.Format(SR.Could_not_create_from_default_value_2,
Property
.Name));
156
if (
Property
.PropertyType == typeof(string))
164
value = TypeUtil.CreateInstance(
Property
.PropertyType);
223
if (
Property
.SerializeAs != SettingsSerializeAs.Binary)
226
return ConvertObjectToString(_value,
Property
.PropertyType,
Property
.SerializeAs,
Property
.ThrowOnErrorSerializing);