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