Pablo Galiano : Thursday, August 21, 2008 - Posts

Subscriptions

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

News

Subscribe to Pablo Galiano by Email

Post Categories

Thursday, August 21, 2008 - Posts

How do I get a model element name property without using reflection / TypeDescriptor

My seventh How do I is up.

Scenario

This is a simpler requirement, we need to obtain a model element name property. But instead of using reflection or the type descriptor class, we need to obtain it by using the "Is Element Name" domain property. The focus of this How do I tackles this scenario.

 

Interfaces and classes needed

 

Code snippet

    string name;

    DomainClassInfo.TryGetName(modelElement, out name);

 

    //Or

    string name = DomainClassInfo.GetName(modelElement);

 

Assemblies needed

  • Microsoft.VisualStudio.Modeling.Sdk

 

Stay tuned,

Pablo

posted Thursday, August 21, 2008 8:45 AM by pga with 1 Comments

Visual Studio SDK 1.1 released!!!

As Quan pointed it the Visual Studio SDK 1.1 was shipped. The readme is located here.

You can download it from here. Before installing it please install the Visual Studio SP1 first.

 

Pablo

posted Thursday, August 21, 2008 8:42 AM by pga with 0 Comments