LP on .NET

June 30, 2009

Now that’s a Property Name!

Filed under: .NET,C#,Humor,Visual Studio,WCF — Larry Parker @ 4:07 pm

Wow, I just came across a property in .NET that is over 100 characters long!  Check this out:

private void Application_Startup(object sender, StartupEventArgs e)
{
    var x = MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10;

In fact, it looks like System.ServiceModel.MessageSecurityVersion has all kinds of lovely property names:

untitled

Good thing for IntelliSense!  ๐Ÿ™‚

Advertisements

June 1, 2009

Funny NullReference Documentation

Filed under: .NET,Humor,technology,Visual Studio — Larry Parker @ 2:01 pm

Hereโ€™s some funny documentation I saw via Intellisense while creating a NullReferenceException:

untitled

And this whole time I thought my exceptions were being read by monkeys!  ๐Ÿ™‚

Blog at WordPress.com.