public static string GetString(this IDictionary <string, string> aValues, string aParam, string aDefault = "") { string result = aDefault; if (aValues.TryGetValue(aParam, out result)) { return(TryParse.String(result, aDefault)); } else { return(aDefault); } }
public static string GetString(this IDictionary <string, object> aValues, string aParam, string aDefault = "") { return(TryParse.String(aValues.GetValue(aParam), aDefault)); }
public static string GetString(this System.Xml.XmlReader aReader, string aAttribute, string aDefault = "") { return(TryParse.String(aReader.GetAttribute(aAttribute), aDefault)); }