Esempio n. 1
0
        public object[] GetArray(ExportOptionKey key)
        {
            object output;

            if (this.options.TryGetValue(key, out output))
            {
                return((object[])output);
            }
            return(null);
        }
Esempio n. 2
0
        public string GetStringOrNull(ExportOptionKey key)
        {
            object output;

            if (this.options.TryGetValue(key, out output))
            {
                if (output == null)
                {
                    return(null);
                }
                return(output.ToString());
            }
            return(null);
        }
Esempio n. 3
0
 public Options SetOption(ExportOptionKey key, object value)
 {
     this.options[key] = value;
     return(this);
 }
Esempio n. 4
0
 public string GetString(ExportOptionKey key, string defaultValue)
 {
     return(GetStringOrNull(key) ?? defaultValue);
 }
Esempio n. 5
0
 public string GetString(ExportOptionKey key)
 {
     return(this.options[key].ToString());
 }
Esempio n. 6
0
 public string GetStringOrEmpty(ExportOptionKey key)
 {
     return(GetString(key, ""));
 }
Esempio n. 7
0
 public bool HasInteger(ExportOptionKey key)
 {
     return(this.options.ContainsKey(key));
 }
Esempio n. 8
0
        public int GetInteger(ExportOptionKey key, int defaultValue)
        {
            object output;

            return(this.options.TryGetValue(key, out output) ? (int)output : defaultValue);
        }
Esempio n. 9
0
 public int GetInteger(ExportOptionKey key)
 {
     return((int)this.options[key]);
 }
Esempio n. 10
0
        public bool GetBool(ExportOptionKey key)
        {
            object output;

            return(this.options.TryGetValue(key, out output) && (bool)output);
        }
Esempio n. 11
0
 public string[] GetStringArray(ExportOptionKey key)
 {
     return((string[])this.options[key]);
 }