Пример #1
0
 internal void SetStringValue(string value)
 {
     val = property.ConvertFromString(value);
     if (!object.Equals(val, DefaultValue))
     {
         origin = PropertyValueOrigin.SetHere;
     }
 }
Пример #2
0
 internal void Reset(PropertyInformation parentProperty)
 {
     if (parentProperty != null)
     {
         if (property.IsElement)
         {
             ((ConfigurationElement)Value).Reset((ConfigurationElement)parentProperty.Value);
         }
         else
         {
             val    = parentProperty.Value;
             origin = PropertyValueOrigin.Inherited;
         }
     }
     else
     {
         origin = PropertyValueOrigin.Default;
     }
 }
		internal void SetStringValue (string value)
		{
			val = property.ConvertFromString (value);
			if (!object.Equals (val, DefaultValue))
				origin = PropertyValueOrigin.SetHere;
		}
		internal void Reset (PropertyInformation parentProperty)
		{
			if (parentProperty != null) {
				if (property.IsElement) {
					((ConfigurationElement)Value).Reset ((ConfigurationElement) parentProperty.Value);
				}
				else {
					val = parentProperty.Value;
					origin = PropertyValueOrigin.Inherited;
				}
			} else {
				origin = PropertyValueOrigin.Default;
			}
		}