Пример #1
0
        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(")");
        }
Пример #2
0
 public void WriteItem1(IndentedTextWriter2 writer, ShortTypeNameGenerator sng)
 {
     writer.Write(_item1);
 }
Пример #3
0
 public void WriteItem0(IndentedTextWriter2 writer, ShortTypeNameGenerator sng)
 {
     writer.Write($"{sng.GetShortName(_item0)}");
 }
Пример #4
0
 public void WriteItem1(IndentedTextWriter2 writer, ShortTypeNameGenerator sng)
 {
     writer.Write($"typeof({sng.GetShortName(_item1)})");
 }
Пример #5
0
 internal void WriteInterface(IndentedTextWriter2 writer, ShortTypeNameGenerator sng)
 {
     writer.Write(InterfaceProduct.GetInterfaceDeclaration(sng));
     writer.Write(", ");
     writer.Write(InterfaceFastProduct.GetInterfaceDeclaration(sng));
 }