Ropes I Know

September 13, 2009

.NET – Discoveries

Filed under: .NET, Computer, Programming Languages — Tags: , — Yeti @ 8:45

ApplicationContext Class (System.Windows.Forms)

.NET Framework Class Library
ApplicationContext Class

Specifies the contextual information about an application thread.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Even after several years of heavy C# / .NET – programming, I occasionally stumble upon something I have long since implemented a replacement method, only to discover that there is a class and and a standard method to do this. This standard method often proves to be a one-to-three – liner whereas I have hacked together a class hierarchy of several hundred lines-of-code.

And hey, sometimes it even works and if not, I have always learned quite a lot.

I know, sometimes people consider this trial and error method “Cargo Cult Programming”, but if I afterwards discover how it should be done, and realize that I’ve hacked in the right direction and have learned the “standard” method.

Does any of that make any sense to anyone?

Create a free website or blog at WordPress.com.