Пример #1
0
        public static String VersionedName(this PrimitiveDef t)
        {
            var Name    = FullName(t);
            var Version = "";

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "[" + Version + "]");
        }
Пример #2
0
        public static String TypeFriendlyName(this PrimitiveDef t)
        {
            var Name    = String.Join(".", t.Name);
            var Version = "";

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "At" + Version);
        }
Пример #3
0
 public static String FullName(this PrimitiveDef t)
 {
     return(String.Join(".", t.Name));
 }
Пример #4
0
 /// <summary>基元</summary>
 public static TypeDef CreatePrimitive(PrimitiveDef Value)
 {
     return(new TypeDef {
         _Tag = TypeDefTag.Primitive, Primitive = Value
     });
 }