コード例 #1
0
        public void LanguageWriterTypeSourceTest()
        {
            ILanguageWriter writer = new CSharpWriter();
            string          s;
            Type            type;

            type = typeof(double[][, ]);
            s    = writer.TypeSource(CodeBuilder.Instance.TypeRef(type));
            Assert.Equal("double[][,]", s);

            type = typeof(KeyValuePair <double[, ][], double[][, ]>[][, ]);
            s    = writer.TypeSource(CodeBuilder.Instance.TypeRef(type));
            Assert.Equal("KeyValuePair<double[,][],double[][,]>[][,]", s);
        }
コード例 #2
0
        public override string ToString()
        {
            ILanguageWriter writer = new CSharpWriter() as ILanguageWriter;

            return(writer.TypeSource(this));
            //// RTODO
            //IType it = this.Resolve();
            //if (it != null)
            //    return it.ToString();
            //else
            //    return base.ToString();
        }
コード例 #3
0
        public override string ToString()
        {
            ILanguageWriter writer = new CSharpWriter() as ILanguageWriter;

            return(writer.TypeSource(this));
        }