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); }
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(); }
public override string ToString() { ILanguageWriter writer = new CSharpWriter() as ILanguageWriter; return(writer.TypeSource(this)); }