Hello everyone
Can anyone explains what are differences between
Static new method and new method and static construct method
i saw article in MS says that
https://msdn.microsoft.com/en-us/library/aa854210.aspx
-
Each class must have a single public construction method unless the class is abstract. If no initialization is required, use a static construct method. Otherwise, use a static new… method (the default constructor (new method) for the class should be protected).
-
Each class should have at least one static construct method method.
-
Each class should have at least one static new… method.
-
Each class should have a new method (the default constructor). This method should be protected.
- point no 3 and 4 speaks about static new and new !!! can any one explain difference between static new and new
- difference between construct method and static new and why static new should be protected
- what advantage of using construct instead of static new
Thanks for all members