How to structure C# class library?

10,792

Solution 1

This should help: Design Guidelines for Developing Class Libraries. Actually a good reading for all .net developers.

Solution 2

Use static code analysis (FxCop). It'll enforce all of Microsoft's guidelines/best practices for library development.

Share:
10,792

Related videos on Youtube

Patrick87
Author by

Patrick87

Updated on July 12, 2022

Comments

  • Patrick87
    Patrick87 almost 2 years

    good day! I need your help.. how do you write and structure your code in a class library such that when it is built as dll other programmers can use that dll as their library more like the base class library. except that i dont know how to structure them are there any rules in writing a good library? best practices maybe? so that my library will be elegant and much like the base class libraries in .net

    please help.. thanks!

  • Henk Holterman
    Henk Holterman almost 11 years
    But it won't suggest 'elegance'.