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

            if (Version == "")
            {
                return(Name);
            }
            return(Name + "[" + Version + "]");
        }
Exemple #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);
        }
Exemple #3
0
 public static String FullName(this PrimitiveDef t)
 {
     return(String.Join(".", t.Name));
 }
Exemple #4
0
 /// <summary>基元</summary>
 public static TypeDef CreatePrimitive(PrimitiveDef Value)
 {
     return(new TypeDef {
         _Tag = TypeDefTag.Primitive, Primitive = Value
     });
 }