Exemple #1
0
        public static String VersionedName(this EnumDef t)
        {
            var Name    = FullName(t);
            var Version = t.Version;

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "[" + Version + "]");
        }
Exemple #2
0
        public static String TypeFriendlyName(this EnumDef t)
        {
            var Name    = String.Join(".", t.Name);
            var Version = t.Version;

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "At" + Version);
        }
Exemple #3
0
 public static String FullName(this EnumDef t)
 {
     return(String.Join(".", t.Name));
 }
Exemple #4
0
 /// <summary>枚举</summary>
 public static TypeDef CreateEnum(EnumDef Value)
 {
     return(new TypeDef {
         _Tag = TypeDefTag.Enum, Enum = Value
     });
 }