public void Write(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.Write("new System.Tuple<"); _tuplesParts.IterateWithLastSignal( t => t.WriteItem0(writer, sng), () => writer.Write(", ") ); writer.Write(">("); _tuplesParts.IterateWithLastSignal( t => t.WriteItem1(writer, sng), () => writer.Write(", ") ); writer.Write(")"); }
public void WriteItem1(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.Write(_item1); }
public void WriteItem0(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.Write($"{sng.GetShortName(_item0)}"); }
public void WriteItem1(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.Write($"typeof({sng.GetShortName(_item1)})"); }
internal void WriteInterface(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.Write(InterfaceProduct.GetInterfaceDeclaration(sng)); writer.Write(", "); writer.Write(InterfaceFastProduct.GetInterfaceDeclaration(sng)); }