I think Title is not very suggestive in what I meant to ask, so theres is an example.
I have this method that receives a name of System.Windows.Forms Control and then returns the type. (I need to use Version=2.0.0.0 of System.Windows.Forms)
return Type.GetType("System.Windows.Forms." + name + ", System.Windows.Forms,Culture=neutral, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089")
I don't like the appearance of this method, it seems weird by having that string.
So I was wondering if it is possible to specify System.Windows.Forms Assembly in App.config file and use some short name in c#?
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2.0.0.0"/>
</dependentAssembly>
By Short Name I mean something like this:
Type.GetType("System.Windows.Forms." + name)
Is it possible?