コード例 #1
0
        public static CodeTypeDeclaration AddEnum(this CodeTypeDeclaration @class, string enumName)
        {
            var e = Define.Enum(enumName);

            @class.AddEnum(e);

            return(e);
        }
コード例 #2
0
 public static CodeTypeDeclaration AddEnum(this CodeTypeDeclaration parent, string name) => parent.AddEnum(name, null);