public string convert(string source, Dictionary<string, object> attributes, Dictionary<string, object> model) { String key = source.GetHashCode() + "-" + attributes.GetHashCode(); if (!cache.Contains(key)) { cache.Add(key, convert(source, attributes)); } return (string) cache[key]; }
// create a type... for future use. public static Type CreateClass(Dictionary<string, string> dic ) { var className = dic.GetHashCode().ToString(); return CreateClass(dic, className); }