MSIR.0808 New must be disallowed in Public block to be a Private constructor

From m204wiki
Revision as of 19:11, 23 April 2014 by JALWiccan (talk | contribs) (Automatically generated page update)
Jump to navigation Jump to search

A New constructor was declared in a Private block but New had not been disallowed in the Public block. If the intent is to really have a private New constructor, specify a Disallow New in the Public block to let users of the class know that the new constructor is not available outside the class. If the Disallow New is already in the Public block, make sure the Public block is declared before the Private. If the intent is not to have a private New constructor, the constructor declaration should be moved to the Public block.