public static CodeTypeDeclaration AddClass(this CodeTypeDeclaration @class, string className) { var c = Define.Class(className); @class.GetNamespace().Types.Add(c); return(c); }