compmod\microsoft\csharp\csharpcodeprovider.cs (338)
421Indentation indentObj = new Indentation((IndentedTextWriter)Output, Indent + 1);
662Output.WriteLine(st);
690Output.Write(CreateEscapedIdentifier(ident));
699Output.Write(GetTypeOutput(typeRef));
711Output.Write("new ");
720Output.Write("[]");
722Output.WriteLine(" {");
726Output.Write("}");
729Output.Write(GetBaseTypeOutput(e.CreateType));
731Output.Write("[");
736Output.Write(e.Size);
738Output.Write("]");
742Output.Write("[]");
754Output.Write("base");
765Output.Write("(");
768Output.Write(" ");
784Output.Write(" ");
787Output.Write(")");
801Output.Write("((");
803Output.Write(")(");
805Output.Write("))");
828Output.Write("default(");
830Output.Write(")");
840Output.Write("new ");
842Output.Write("(");
844Output.Write(".");
846Output.Write(")");
856Output.WriteLine();
881Output.WriteLine();
907Output.Write(".");
928Output.Write("[");
935Output.Write(", ");
939Output.Write("]");
945Output.Write("[");
952Output.Write(", ");
956Output.Write("]");
969Output.WriteLine(e.Value);
984Output.Write(e.Value);
994Output.Write("(");
996Output.Write(")");
1002Output.Write("(");
1004Output.Write(")");
1009Output.Write(".");
1014Output.Write(GetTypeArgumentsOutput(e.TypeArguments));
1035Output.WriteLine("");
1150Output.Write(".");
1165Output.Write("(");
1167Output.Write(")");
1176Output.Write("new ");
1178Output.Write("(");
1180Output.Write(")");
1195Output.Write(((SByte)e.Value).ToString(CultureInfo.InvariantCulture));
1200Output.Write(((UInt16)e.Value).ToString(CultureInfo.InvariantCulture));
1203Output.Write(((UInt32)e.Value).ToString(CultureInfo.InvariantCulture));
1204Output.Write("u");
1207Output.Write(((UInt64)e.Value).ToString(CultureInfo.InvariantCulture));
1208Output.Write("ul");
1223Output.Write(NullToken);
1226Output.Write(QuoteSnippetString((string)e.Value));
1229Output.Write("'" + e.Value.ToString() + "'");
1232Output.Write(((byte)e.Value).ToString(CultureInfo.InvariantCulture));
1235Output.Write(((Int16)e.Value).ToString(CultureInfo.InvariantCulture));
1238Output.Write(((Int32)e.Value).ToString(CultureInfo.InvariantCulture));
1241Output.Write(((Int64)e.Value).ToString(CultureInfo.InvariantCulture));
1254Output.Write("true");
1257Output.Write("false");
1266Output.Write('\'');
1269Output.Write("\\r");
1272Output.Write("\\t");
1275Output.Write("\\\"");
1278Output.Write("\\\'");
1281Output.Write("\\\\");
1284Output.Write("\\0");
1287Output.Write("\\n");
1301Output.Write(c);
1305Output.Write('\'');
1310Output.Write("\\u");
1311Output.Write(((int)value).ToString("X4", CultureInfo.InvariantCulture));
1319Output.Write("value");
1329Output.Write("this");
1341Output.WriteLine(";");
1353Output.Write("for (");
1355Output.Write("; ");
1357Output.Write("; ");
1359Output.Write(")");
1365Output.WriteLine("}");
1374Output.Write("throw");
1376Output.Write(" ");
1379Output.WriteLine(";");
1384Output.Write(commentLineStart);
1385Output.Write(" ");
1392Output.Write(value[i]);
1396Output.Write('\n');
1399((IndentedTextWriter)Output).InternalOutputTabs();
1400Output.Write(commentLineStart);
1403((IndentedTextWriter)Output).InternalOutputTabs();
1404Output.Write(commentLineStart);
1407Output.Write(commentLineStart);
1410Output.WriteLine();
1441Output.Write("return");
1443Output.Write(" ");
1446Output.WriteLine(";");
1455Output.Write("if (");
1457Output.Write(")");
1465Output.Write("}");
1467Output.Write(" ");
1470Output.WriteLine("");
1472Output.Write("else");
1478Output.WriteLine("}");
1487Output.Write("try");
1496Output.Write("}");
1498Output.Write(" ");
1501Output.WriteLine("");
1504Output.Write("catch (");
1506Output.Write(" ");
1508Output.Write(")");
1518Output.Write("}");
1520Output.Write(" ");
1523Output.WriteLine("");
1525Output.Write("finally");
1531Output.WriteLine("}");
1541Output.Write(" = ");
1544Output.WriteLine(";");
1556Output.Write(" += ");
1558Output.WriteLine(";");
1569Output.Write(" -= ");
1571Output.WriteLine(";");
1575Output.WriteLine(e.Value);
1579Output.Write("goto ");
1580Output.Write(e.Label);
1581Output.WriteLine(";");
1586Output.Write(e.Label);
1587Output.WriteLine(":");
1603Output.Write(" = ");
1607Output.WriteLine(";");
1617Output.WriteLine("");
1618Output.Write("#line ");
1619Output.Write(e.LineNumber);
1620Output.Write(" \"");
1621Output.Write(e.FileName);
1622Output.Write("\"");
1623Output.WriteLine("");
1632Output.WriteLine();
1633Output.WriteLine("#line default");
1634Output.WriteLine("#line hidden");
1647Output.Write("event ");
1653Output.WriteLine(";");
1760Output.Write(" = ");
1763Output.WriteLine(",");
1775Output.Write(" = ");
1778Output.WriteLine(";");
1788Output.Write(e.Text);
1806Output.Write("public static ");
1808Output.Write(" Main()");
1815Output.WriteLine("}");
1827Output.WriteLine();
1877Output.Write(" ");
1879Output.Write(GetBaseTypeOutput(e.PrivateImplementationType));
1880Output.Write(".");
1886Output.Write("(");
1888Output.Write(")");
1901Output.WriteLine("}");
1904Output.WriteLine(";");
1915Output.WriteLine();
1955Output.Write(" ");
1958Output.Write(GetBaseTypeOutput(e.PrivateImplementationType));
1959Output.Write(".");
1963Output.Write("this[");
1965Output.Write("]");
1976Output.WriteLine("get;");
1979Output.Write("get");
1984Output.WriteLine("}");
1989Output.WriteLine("set;");
1992Output.Write("set");
1997Output.WriteLine("}");
2002Output.WriteLine("}");
2007Output.Write("float.NaN");
2010Output.Write("float.NegativeInfinity");
2013Output.Write("float.PositiveInfinity");
2016Output.Write(s.ToString(CultureInfo.InvariantCulture));
2017Output.Write('F');
2023Output.Write("double.NaN");
2026Output.Write("double.NegativeInfinity");
2029Output.Write("double.PositiveInfinity");
2032Output.Write(d.ToString("R", CultureInfo.InvariantCulture));
2034Output.Write("D");
2039Output.Write(d.ToString(CultureInfo.InvariantCulture));
2040Output.Write('m');
2046Output.Write("new ");
2059Output.Write("internal ");
2062Output.Write("internal "); /*FamANDAssem*/
2065Output.Write("protected ");
2068Output.Write("protected internal ");
2071Output.Write("private ");
2074Output.Write("public ");
2082Output.Write("abstract ");
2085Output.Write("");
2088Output.Write("static ");
2091Output.Write("override ");
2098Output.Write("virtual ");
2116Output.Write("+");
2119Output.Write("-");
2122Output.Write("*");
2125Output.Write("/");
2128Output.Write("%");
2131Output.Write("=");
2134Output.Write("!=");
2137Output.Write("==");
2140Output.Write("==");
2143Output.Write("|");
2146Output.Write("&");
2149Output.Write("||");
2152Output.Write("&&");
2155Output.Write("<");
2158Output.Write("<=");
2161Output.Write(">");
2164Output.Write(">=");
2174Output.Write("static ");
2177Output.Write("const ");
2194Output.Write(".");
2206Output.WriteLine();
2238Output.Write("(");
2240Output.Write(")");
2246Output.WriteLine(" : ");
2249Output.Write("base(");
2251Output.Write(")");
2257Output.WriteLine(" : ");
2260Output.Write("this(");
2262Output.Write(")");
2271Output.WriteLine("}");
2285Output.Write("static ");
2286Output.Write(CurrentTypeName);
2287Output.Write("()");
2292Output.WriteLine("}");
2312Output.Write("typeof(");
2314Output.Write(")");
2372Output.WriteLine();
2392Output.Write("public ");
2400Output.Write("delegate ");
2402Output.Write(" ");
2404Output.Write("(");
2406Output.WriteLine(");");
2416Output.Write(" : ");
2420Output.Write(", ");
2435Output.WriteLine();
2497Output.WriteLine();
2516Output.WriteLine();
2542Output.WriteLine();
2573Output.WriteLine();
2582Output.WriteLine();
2610Output.Write("=");
2625Output.Write("out ");
2628Output.Write("ref ");
2659Output.Write(", ");
2684Output.Write(", ");
2703Output.Write(" ");
2712Output.Write('<');
2719Output.Write(", ");
2724Output.Write(' ');
2727Output.Write(typeParameters[i].Name);
2730Output.Write('>');
2741Output.WriteLine();
2748Output.Write("where ");
2749Output.Write(typeParameters[i].Name);
2750Output.Write(" : ");
2754Output.Write(", ");
2762Output.Write("where ");
2763Output.Write(typeParameters[i].Name);
2764Output.Write(" : new()");
2767Output.Write(", new ()");
2778Output.Write("new ");
2785Output.Write("public ");
2788Output.Write("private ");
2791Output.Write("protected ");
2796Output.Write("internal ");
2799Output.Write("protected internal ");
2805Output.Write("partial ");
2807Output.Write("struct ");
2810Output.Write("enum ");
2816Output.Write("sealed ");
2819Output.Write("abstract ");
2822Output.Write("partial ");
2825Output.Write("class ");
2830Output.Write("partial ");
2832Output.Write("interface ");
2846Output.WriteLine("}");
2858Output.Write("namespace ");
2863Output.Write(".");
2893Output.WriteLine("//------------------------------------------------------------------------------");
2894Output.Write("// <");
2895Output.WriteLine(SR.GetString(SR.AutoGen_Comment_Line1));
2896Output.Write("// ");
2897Output.WriteLine(SR.GetString(SR.AutoGen_Comment_Line2));
2898Output.Write("// ");
2899Output.Write(SR.GetString(SR.AutoGen_Comment_Line3));
2900Output.WriteLine(System.Environment.Version.ToString());
2901Output.WriteLine("//");
2902Output.Write("// ");
2903Output.WriteLine(SR.GetString(SR.AutoGen_Comment_Line4));
2904Output.Write("// ");
2905Output.WriteLine(SR.GetString(SR.AutoGen_Comment_Line5));
2906Output.Write("// </");
2907Output.WriteLine(SR.GetString(SR.AutoGen_Comment_Line1));
2908Output.WriteLine("//------------------------------------------------------------------------------");
2909Output.WriteLine("");
2932Output.Write("using ");
2934Output.WriteLine(";");
2937Output.WriteLine("");
2943Output.WriteLine("");
2981Output.Write("#pragma checksum \"");
2982Output.Write(checksumPragma.FileName);
2983Output.Write("\" \"");
2984Output.Write(checksumPragma.ChecksumAlgorithmId.ToString("B", CultureInfo.InvariantCulture));
2985Output.Write("\" \"");
2988Output.Write(b.ToString("X2", CultureInfo.InvariantCulture));
2991Output.WriteLine("\"");
2996Output.Write("#region ");
2997Output.WriteLine(regionDirective.RegionText);
3000Output.WriteLine("#endregion");
3013Output.WriteLine("}");
3023Output.Write("using ");
3025Output.WriteLine(";");
3034Output.Write("[");
3043Output.Write("]");
3073Output.Write(prefix);
3077Output.Write(GetTypeOutput(current.AttributeType));
3079Output.Write("(");
3087Output.Write(", ");
3093Output.Write(")");
3096Output.Write(" ");
3099Output.WriteLine();
3105Output.Write(prefix);
3107Output.Write("params");
3110Output.Write(" ");
3113Output.WriteLine();
3357Output.WriteLine("");
3358Output.WriteLine("{");
3361Output.WriteLine(" {");