Generating Shared Members

Visual Studio is intelligent enough to understand whenever you try to define a shared member. For example, imagine you want to implement a method that returns the number of active instances of the Person class. If you type the following code:

Person.ReturnInstanceCount()

and then select the Generate method stub correction option, Visual Studio generates the following code:

image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.126.239