Warning, file /frameworks/syntax-highlighting/autotests/input/csharp.cs was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // this is a single-line comment 0002 // NOTE ### FIXME TODO 0003 0004 /* this is a 0005 multi-line comment 0006 */ 0007 0008 /* this is another 0009 * multiline comment 0010 * NOTE ### FIXME TODO 0011 */ 0012 0013 /** this is another 0014 * multiline comment 0015 * NOTE ### FIXME TODO 0016 */ 0017 0018 // simple assignment 0019 var i = 5; 0020 0021 var j = // assignment missing, still should be nice highlighting 0022 var k // assignment missing, still should be nice highlighting 0023 0024 // test a string 0025 var s = "Hello World!"; 0026 0027 // arr is an array 0028 var arr = new[] { 0, 1, 2, 3, 4 }; 0029 0030 // expr is compiled as IEnumerable<Customer> 0031 // or perhaps IQueryable<Customer> 0032 var expr = 0033 from c in customers 0034 where c.City == "London" 0035 select c; 0036 0037 // compiled anonymous type 0038 var anon = new { Country = "Germany", Inhabitants = 80000000 };