1 write to Property
System.Configuration.ConfigurationManager (1)
System\Configuration\SettingsPropertyValue.cs (1)
28
Property
= property;
26 references to Property
System.Configuration.ConfigurationManager (26)
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 (24)
20
public string Name =>
Property
.Name;
41
if (_value != null && !
Property
.PropertyType.IsPrimitive && !(_value is string) && !(_value is DateTime))
96
value = GetObjectFromString(
Property
.PropertyType,
Property
.SerializeAs, (string)SerializedValue);
121
object[] args = new object[] {
Property
, this, exception };
141
if (value != null && !
Property
.PropertyType.IsAssignableFrom(value.GetType())) // is it the correct type
149
if (
Property
.DefaultValue == null ||
Property
.DefaultValue.ToString() == "[null]")
151
if (
Property
.PropertyType.IsValueType)
152
return TypeUtil.CreateInstance(
Property
.PropertyType);
156
if (!(
Property
.DefaultValue is string))
158
value =
Property
.DefaultValue;
164
value = GetObjectFromString(
Property
.PropertyType,
Property
.SerializeAs, (string)
Property
.DefaultValue);
168
throw new ArgumentException(SR.Format(SR.Could_not_create_from_default_value,
Property
.Name, e.Message));
172
if (value != null && !
Property
.PropertyType.IsAssignableFrom(value.GetType())) // is it the correct type
173
throw new ArgumentException(SR.Format(SR.Could_not_create_from_default_value_2,
Property
.Name));
179
if (
Property
.PropertyType == typeof(string))
187
value = TypeUtil.CreateInstance(
Property
.PropertyType);
246
if (
Property
.SerializeAs != SettingsSerializeAs.Binary)
249
return ConvertObjectToString(_value,
Property
.PropertyType,
Property
.SerializeAs,
Property
.ThrowOnErrorSerializing);