¡@

Home 

c# Programming Glossary: shapedescriptionattribute

Reflection. What can we achieve using it?

http://stackoverflow.com/questions/1897712/reflection-what-can-we-achieve-using-it

Using reflection to get the field public static ShapeDescriptionAttribute GetShapeDescription this ShapeName shapeName Type type shapeName.GetType.. FieldInfo fieldInfo type.GetField shapeName.ToString ShapeDescriptionAttribute attribs fieldInfo.GetCustomAttributes typeof ShapeDescriptionAttribute.. attribs fieldInfo.GetCustomAttributes typeof ShapeDescriptionAttribute false as ShapeDescriptionAttribute return attribs null attribs.Length..