public object[] GetArray(ExportOptionKey key) { object output; if (this.options.TryGetValue(key, out output)) { return((object[])output); } return(null); }
public string GetStringOrNull(ExportOptionKey key) { object output; if (this.options.TryGetValue(key, out output)) { if (output == null) { return(null); } return(output.ToString()); } return(null); }
public Options SetOption(ExportOptionKey key, object value) { this.options[key] = value; return(this); }
public string GetString(ExportOptionKey key, string defaultValue) { return(GetStringOrNull(key) ?? defaultValue); }
public string GetString(ExportOptionKey key) { return(this.options[key].ToString()); }
public string GetStringOrEmpty(ExportOptionKey key) { return(GetString(key, "")); }
public bool HasInteger(ExportOptionKey key) { return(this.options.ContainsKey(key)); }
public int GetInteger(ExportOptionKey key, int defaultValue) { object output; return(this.options.TryGetValue(key, out output) ? (int)output : defaultValue); }
public int GetInteger(ExportOptionKey key) { return((int)this.options[key]); }
public bool GetBool(ExportOptionKey key) { object output; return(this.options.TryGetValue(key, out output) && (bool)output); }
public string[] GetStringArray(ExportOptionKey key) { return((string[])this.options[key]); }