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(); } }
public void SetValue(object value, ConfigValueFormat format = ConfigValueFormat.Default) { Type t = value.GetType(); SetValue(t, value, format); }