I am quite new to FxCop
Could any one guide me for the following rule
Avoid multiple Main() methods in a single assembly.
Thanks in advance.
Not sure exactly what you are looking for as although you can have multiple methods named 'Main', only one will ever be considered as the actual entry point.
To write this rule, simply override Check(Member), check if it a method (via Member.NodeType) and then see if its name (Member.Name.Name) is 'Main'.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?