Beispiel #1
0
        public static void Case0()
        {
            //Type tt = typeof(XmlDictionaryWriter);
            //Type tt = typeof(int);
            //Type tt = typeof(Guid);
            //Type tt = typeof(int[]);
            //Type tt = typeof(List<Dictionary<int, string>>);
            //Type tt = typeof(myAAA);
            //Type tt = typeof(Dictionary<string, int>);
            //Type tt = typeof(myCCC);
            //Type tt = typeof(System.Security.Cryptography.X509Certificates.X509Certificate2);
            //Type tt = typeof(object);
            Type    tt = typeof(string);
            VarDesc td = TypeViewer.ParseType(tt, "root");

            Helpers.WiteTypeDesc($@"f:\111.xml", td);
        }
Beispiel #2
0
        static public VarDesc ParseType(Type tt, string varName)
        {
            var tv = new TypeViewer();

            return(tv.Parse(tt, varName));
        }