Exemple #1
0
 public void SetValue(Type valueType, object value, ConfigValueFormat format = ConfigValueFormat.Default)
 {
     this.ValueType   = valueType.AssemblyQualifiedName;
     this.ValueFormat = format;
     if (value == null)
     {
         this.Value = null;
     }
     else
     {
         this.Value = value.ToString();
     }
 }
Exemple #2
0
        public void SetValue(object value, ConfigValueFormat format = ConfigValueFormat.Default)
        {
            Type t = value.GetType();

            SetValue(t, value, format);
        }