Tag Archives: reflection

How to customize the Reflection Metadata ?

If you dealt with Type API in .NET 4.5, you must have already found that there is a separate object that exists that subsets the Type object into a more lightweight object representation that provides metadata specific to a particular Type called here as TypeInfo. It is quite easy to deal with TypeInfo rather that […]

Programmatically Get Assembly Version

In this tip I will discuss how we can get assembly version programmatically  from a caller application.  This can be done easily by taking help of Reflection.  Assembly  Class contains a static method called GetAssemblyFullName() which gets the assembly that contains the code that is currently executing.

Working with TypeDescriptor in C#

TypeDescriptor is a static sealed class which makes the starting point of the API. It exposes information of the object in terms of Properties, Attributes, Events etc in such a way that it could easily be managed and/or consumed. Even though the basic usage of TypeDescriptor is to get metadata of an object, yet it […]