Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# order of initialization

// 1. initialization of static fields start after _first_ occurence of class
// 2. initializatino of dynamic fields start _every_ time creating new object
// 1.1 static fields
// 1.2 static constructor
// 2.1 dynamic fields
// 2.2 dynamic concstructor
Source by ulearn.me #
 
PREVIOUS NEXT
Tagged: #order #initialization
ADD COMMENT
Topic
Name
8+8 =