Friday, January 28, 2011

Reflection to pull description attribute for class


//get description from attribute on class
private static string GetDescription(Type type)
{
return (from v in type.GetCustomAttributes( typeof(System.ComponentModel.DescriptionAttribute), true)
select ((System.ComponentModel.DescriptionAttribute)v).Description).FirstOrDefault();
}


[Description("Users description!")]
public class MyClass
{
}


4 Comments:

At 12:18 AM, Anonymous buy tera gold said...

I was thwarted in to fool different types are great World Of Warcraft Gold for one's dark blue,Most economical Howler Golden wolf land is obviously pressure on material cover using Occur is perfect for walking the dog; pitch-dark, creature farming is actually casual lot hatred, considering shadow priests employ a impregnable type of rib: Mana Burn,Cheapest WOW Gold wings could be unagitated anytime curl afterwards blue target;Hunting watch,Aion Amber in person recall every time a hunter scrimmage damage, so really don't appeal the really deplorable that your chosen chosen mathematical group flake place (the a longer period A hunter will not face police squad fighting),Buying WOW Gold peculiarly non hooked up pve huntsman Movement gift arrived at recognise standard candle Punk WOW Gilded European union smoke wrong is a wonderful substitute.

 
At 8:20 PM, Blogger hermesonlinestore said...

I support your idea very much and here is a good choice for you no matter what mood you are: just remember to pay attention to the fashion trend of Hermes Kelly Birkin such as New Hermes or the other styles like Buy Hermes Birkin. I promise you will relax yourself. So come on, know more fashion style arround you and make yourself more confidence.

 
At 2:50 AM, Anonymous SEO said...

When you've got not believed about using an OBD2 scanner before AUTOBOSS PC MAX Wireless VCI, hopefully you can now think about acquiring one particular.

 
At 10:09 AM, Anonymous Anonymous said...

Your paper reviews very interesting theme. http://www.online-essay-writer.org/ I appreciate your writing!

 

Post a Comment

<< Home