Home
Browse all 647 examples
Download all 647 examples
Download sample chapters
Reviews
Errata
Acknowledgments
Links on .NET
Paradoxal Press

Buy directly from Paradoxal Press at $33.99 (Save 43%)



Category: Programming
Level: Beginner to seasoned
900 pages
ISBN-10 097661322-0
ISBN-13 978-097661322-0
$59.99 USA
$79.99 CANADA


Listing 15-4 extracted from chapter Collections


Listing 15-3<     > Listing 15-5


This listing can be compiled with the command line:
csc.exe /target:exe Example_15_4.cs
Errors: 0 Warnings: 0


Example_15_4.cs
public class Program {
   public static void Main() {
      byte = 2;
      long = 3;

      // 't1' references an 'integer' unidimensional array 
      // that contains 6 items.
      int [] t1 = new int [6];
       
      // 't2' references a 'double' multi-dimensional array of rank 2
      // that contains 12 items (j=3 and 3x4=12).
      double [,] t2 = new double [j,4];
          
      // 't3' references an 'object' multi-dimensional array of rank 3
      // that contains 30 items (j=3 and i=2 and 3x5x2=30).
      object [,,] t3 = new object [j,5,i];
   }
}	
Copyright Patrick Smacchia 2006 2007