public static T GetValueOrDefault <T>(this Data.ParametersBase self, string key, T defaultValue)
        {
            if (self == null)
            {
                return(defaultValue);
            }
            T ret;

            if (self.TryGetValue(key, out ret))
            {
                return(ret);
            }
            return(defaultValue);
        }
Exemplo n.º 2
0
 public ParametersBase(ParametersBase copyFrom)
 {
     this._Entries = new Dictionary <string, object>(copyFrom._Entries);
 }
 public static T GetValueOrDefault <T>(this Data.ParametersBase self, string key)
 {
     return(self.GetValueOrDefault(key, default(T)));
 }
 public CustomizeParameters(ParametersBase copyFrom) : base(copyFrom)
 {
     Set(CustomizeParametersKey, this);
 }