Esempio n. 1
0
        public void TyfoBareInt()
        {
            DataType dt = PrimitiveType.Int32;

            tyreffo.WriteTypeReference(dt);
            Assert.AreEqual("int32", sw.ToString());
        }
Esempio n. 2
0
        private string DecorateGenericName()
        {
            var sw = new StringWriter();

            sw.Write(Name);
            if (this.IsGeneric)
            {
                var fm  = new TextFormatter(sw);
                var tw  = new TypeReferenceFormatter(fm);
                var sep = '<';
                foreach (var arg in this.genericArguments)
                {
                    sw.Write(sep);
                    sep = ',';
                    tw.WriteTypeReference(arg);
                }
                sw.Write('>');
            }
            return(sw.ToString());
        }