Exemplo n.º 1
0
 /// <summary>
 /// Find the class by the given name, if it does not exist
 /// create a new one and return reference
 /// </summary>
 /// <param name="className"></param>
 /// <returns></returns>
 internal Class FindClassByName(string className)
 {
     foreach (var clazz in Classes)
     {
         if (clazz.FullName == className)
         {
             return clazz;
         }
     }
     var newClazz = new Class();
     newClazz.FullName = className;
     Classes.Add(newClazz);
     return newClazz;
 }
Exemplo n.º 2
0
 public static Method Create(Class clazz)
 {
     Summary parentSummary = clazz != null ? clazz.Summary : null;
     Method method = new Method(parentSummary);
     return method;
 }