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?

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: