public static CodeTypeDeclaration AddEnum(this CodeTypeDeclaration @class, string enumName) { var e = Define.Enum(enumName); @class.AddEnum(e); return(e); }
public static CodeTypeDeclaration AddEnum(this CodeTypeDeclaration parent, string name) => parent.AddEnum(name, null);