It is a very common requirement to get the path of a file relative to the path of the current location which accesses the path. In .NET there are a number of ways which lets you determine the path of a file and there exists more than one valid ways to determine the current path of the file.… Read More »
While doing research with Assemblies and files that build the architecture of .NET, there are a lot of hidden secrets that you can apply on which might not be known to you. Retargetable assemblies are not new to the system. It is present from way back to the inception of .NET, but never been seriously used until we… Read More »
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 the Type object… Read More »
.NET 4.5 comes with some of the major enhancements. Among them, one of the most important changes that has been made to every object is with the metadata of objects. In .NET 4.5 the System.Type object has been split into two separate classes: Type : Provides a shallow view of the object structure, and mainly used to hold… Read More »
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.
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 also exposes features… Read More »