Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 12 Variablesprevious at this levelnext at this level 12.1 Variable categories Paragraph 11 C# defines seven categories of variables: static variables, instance variables, array elements, value parameters, reference parameters, output parameters, and local variables. 2 The sections that follow describe each of these categories. [Example: In the example
class A  
{  
   public static int x;  
   int y;  
   void F(int[] v, int a, ref int b, out int c) {  
      int i = 1;  
      c = a + b++;  
   }  
}  
x is a static variable, y is an instance variable, v[0] is an array element, a is a value parameter, b is a reference parameter, c is an output parameter, and i is a local variable. end example]
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS