C# Static Constructors

Static constructors in C# are a bit tricky to use. Static classes and methods go against OOP principals in the first place, so their use should be limited to only where they make sense.

Here are some basic behaviors about static constructors:

View code on GitHub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s