public FluentClass Class(string name) { FluentClass res; if (!mClasses.TryGetValue(name, out res)) { res = new FluentClass(name); mClasses.Add(name, res); } return res; }
public FluentClass Class(string name) { FluentClass res = null; if (!mClasses.TryGetValue(name, out res)) { res = new FluentClass(name); mClasses.Add(name, res); } return(res); }
/// <summary> /// Create a class of "name" /// </summary> /// <param name="name">Name of resulting class</param> /// <returns></returns> public FluentClass Class(string name, string parent) { FluentClass res; if (!mClasses.TryGetValue(name, out res)) { res = new FluentClass(name, parent, this.Level + 1); mClasses.Add(name, res); } return(res); }
/// <summary> /// Create a class of "name" /// </summary> /// <param name="name">Name of resulting class</param> /// <returns></returns> public FluentClass Class(string name, string parent) { FluentClass res; if (!mClasses.TryGetValue(name, out res)) { res = new FluentClass(name, parent, this.Level + 1); mClasses.Add(name, res); } return res; }