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

1 Comment »

  1. I believe these are a auto-generated names which are really not supposed to be exposed to public.
    Similar names exist in C++ Windows SDK:
    CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL
    IsolationAwarePrivatenCgIiAgEzlnCgpgk

    and so on 🙂

    Comment by pytale — June 30, 2009 @ 5:17 pm | Reply


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

Create a free website or blog at WordPress.com.

%d bloggers like this: