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