Ejemplo n.º 1
0
        public static String VersionedName(this TaggedUnionDef t)
        {
            var Name    = FullName(t);
            var Version = t.Version;

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "[" + Version + "]");
        }
Ejemplo n.º 2
0
        public static String TypeFriendlyName(this TaggedUnionDef t)
        {
            var Name    = String.Join(".", t.Name);
            var Version = t.Version;

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "At" + Version);
        }
Ejemplo n.º 3
0
 public static String FullName(this TaggedUnionDef t)
 {
     return(String.Join(".", t.Name));
 }
Ejemplo n.º 4
0
 /// <summary>标签联合</summary>
 public static TypeDef CreateTaggedUnion(TaggedUnionDef Value)
 {
     return(new TypeDef {
         _Tag = TypeDefTag.TaggedUnion, TaggedUnion = Value
     });
 }