What is the .NET object life cycle?

前端 未结 9 2101
一个人的身影
一个人的身影 2020-12-29 09:05

What is the object life cycle for an object in .NET?

From what I understand it is:

  1. Object created - constructor called (if one exists)
  2. Methods
9条回答
  •  春和景丽
    2020-12-29 09:06

    0) If Static Constructor exists on Object it is called the first time and object of that type is created or referenced

提交回复
热议问题