public static bool HasOwnValue(this IPropertyProvider properties, string key) { return(properties.GetValue(key, null) != properties.GetDefaultValue(key, null)); }
protected TValue GetDefaultValue <TValue>() where TValue : IConvertible { var defval = this.GetMetaDataValue("Default", default(TValue)); return(_Properties.GetDefaultValue(SerializationKey, defval.ConvertToString <TValue>()).ConvertToValue <TValue>()); }
public string GetDefaultValue(string serializationKey, string defval) { return(_Properties.GetDefaultValue(serializationKey, defval)); }