Hey guys, I need the "Encoding" class from "microlib" but the second "Encoding" is default to use. What should I do?
Not sure I fully understand, but assuming you are trying to use 2 different versions of the same assembly:
Use the the Full Assembly Qualified Type Name to instantiate the Type you need.
A fully qualified Type name looks like this:
"WackyCars.ViewModels.CarsViewModel, WackyCars, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null"
Use it something like this:
Type oType = Type.GetType(AssemblyQualifiedTypeName.Trim());
if (oType != null)
//Got Type so create instance
object asmObj = Activator.CreateInstance(oType, TypeConstructorArgs);
if (asmObj != null)
//use the object
Please see here for details.
Hope this points you in the right direction,
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies