Creating a public library

I have been looking for an article or sample from which I can learn how to create a library in c# that will become a nuget package like json or similar, for the life of me I can not find anything with suitable information.

Mainly I want to know the following:

How to expose functionality, for example microsoft’s String class is as follows

public sealed class String : IComparable, ICloneable, IConvertible, IComparable<string>, IEnumerable<char>, IEnumerable, IEquatable<string>
{

and the method is exposed as follows

public static string Format(string format, object arg0, object arg1, object arg2);

Additionally any do’s and don’ts would be helpful.
Any references, pointers or explanations on the topic would be highly appreciated.

P.S. I do apologize if I don’t make sense, I will accept any criticism I can build on.


Source: dll

Leave a Reply