disable broken tests on net_4_0
[mcs.git] / docs / ecma334 / 8.7.10.xml
blob15ce99e761a96bcf8ddb06b2e6553988160423f5
1 <?xml version="1.0"?>
2 <clause number="8.7.10" title="Static constructors" informative="true">
3   <paragraph>A static constructor is a member that implements the actions required to initialize a class. Static constructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be called explicitly. The static constructor for a class is called automatically. </paragraph>
4   <paragraph>The example <code_example><![CDATA[
5 using Personnel.Data;  
6 class Employee  
7 {  
8    private static DataSet ds;  
9    static Employee() {  
10       ds = new DataSet(...);  
11    }  
12    public string Name;  
13    public decimal Salary;  
14    ...  
15 }  
16 ]]></code_example>shows an Employee class with a static constructor that initializes a static field. </paragraph>
17 </clause>