<div> <table cellspacing="0" cellpadding="2" rules="all" CssSelectorClass="PrettyGridView" border="1" id="ctl00_ctl00_MainContent_LiveExample_GridView1" style="border-collapse:collapse;"> <tr style="color:Cyan;background-color:#284775;"> <td colspan="4"><table border="0"> <tr> <td><span>1</span></td><td><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Page$2')" style="color:Cyan;">2</a></td><td><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Page$3')" style="color:Cyan;">3</a></td> </tr> </table></td> </tr><tr style="color:#F7F6F3;background-color:#5D7B9D;font-weight:bold;"> <th scope="col"><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Sort$Operation')" style="color:#F7F6F3;">Operation</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Sort$Reps')" style="color:#F7F6F3;">Repetitions</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Sort$Duration')" style="color:#F7F6F3;">Total test duration milliseconds</a></th><th scope="col"><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Sort$Average')" style="color:#F7F6F3;">Average cost per rep microseconds</a></th> </tr><tr style="color:#333333;background-color:White;"> <td>Abs</td><td>80577</td><td>31</td><td>0.3872</td> </tr><tr style="color:#333333;background-color:#F7F6F3;"> <td>Acos</td><td>70757</td><td>31</td><td>0.4410</td> </tr><tr style="color:#333333;background-color:White;"> <td>Asin</td><td>71552</td><td>31</td><td>0.4361</td> </tr><tr style="color:#333333;background-color:#F7F6F3;"> <td>Atan</td><td>72778</td><td>31</td><td>0.4287</td> </tr><tr style="color:#333333;background-color:White;"> <td>Atan2</td><td>67429</td><td>31</td><td>0.4627</td> </tr><tr style="color:#333333;background-color:#F7F6F3;"> <td>BigMul</td><td>78736</td><td>31</td><td>0.3963</td> </tr><tr style="color:#333333;background-color:White;"> <td>Ceiling</td><td>78545</td><td>31</td><td>0.3972</td> </tr><tr style="color:#333333;background-color:#F7F6F3;"> <td>Cos</td><td>72142</td><td>31</td><td>0.4325</td> </tr><tr style="color:#333333;background-color:White;"> <td>Cosh</td><td>71832</td><td>31</td><td>0.4344</td> </tr><tr style="color:#333333;background-color:#F7F6F3;"> <td>DivRem</td><td>74200</td><td>31</td><td>0.4205</td> </tr><tr style="color:Cyan;background-color:#284775;"> <td colspan="4"><table border="0"> <tr> <td><span>1</span></td><td><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Page$2')" style="color:Cyan;">2</a></td><td><a href="javascript:__doPostBack('ctl00$ctl00$MainContent$LiveExample$GridView1','Page$3')" style="color:Cyan;">3</a></td> </tr> </table></td> </tr> </table> </div>
Thursday 9 February 2012
Snippet of HTML when not using the adapters
Multidimensional Arrays (C# Programming Guide)
// Two-dimensional array. int[,] array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } }; // The same array with dimensions specified. int[,] array2Da = new int[4, 2] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } }; // A similar array with string elements. string[,] array2Db = new string[3, 2] { { "one", "two" }, { "three", "four" }, { "five", "six" } }; // Three-dimensional array. int[, ,] array3D = new int[,,] { { { 1, 2, 3 }, { 4, 5, 6 } }, { { 7, 8, 9 }, { 10, 11, 12 } } }; // The same array with dimensions specified. int[, ,] array3Da = new int[2, 2, 3] { { { 1, 2, 3 }, { 4, 5, 6 } }, { { 7, 8, 9 }, { 10, 11, 12 } } }; // Accessing array elements. System.Console.WriteLine(array2D[0, 0]); System.Console.WriteLine(array2D[0, 1]); System.Console.WriteLine(array2D[1, 0]); System.Console.WriteLine(array2D[1, 1]); System.Console.WriteLine(array2D[3, 0]); System.Console.WriteLine(array2Db[1, 0]); System.Console.WriteLine(array3Da[1, 0, 1]); System.Console.WriteLine(array3D[1, 1, 2]); // Output: // 1 // 2 // 3 // 4 // 7 // three // 8 // 12
You also can initialize the array without specifying the rank.
int[,] array4 = { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
If you choose to declare an array variable without initialization, you must use the new operator to assign an array to the variable. The use of new is shown in the following example.
int[,] array5; array5 = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } }; // OK //array5 = {{1,2}, {3,4}, {5,6}, {7,8}}; // Error
Subscribe to:
Posts (Atom)