CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    767

    Generating User defined Errors in C# !

    Hello All,

    I am currently designing a module in C#, and several programmers may work on the same module. To maintain strict coding restrictions I would like to generate an Error if a programmer tries to include / add a reference say System.Windows.* and also generate Error if a programmer tries to use an API in a reference say String.Contains. Thanks a lot in Advance.
    One's mistake cannot be your excuse!

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: Generating User defined Errors in C# !

    You can use FxCop and extend it with your own rules.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured