c# - Call method with assembly loaded from GAC -
i trying call save
method system.drawing.image
object, after loading assembly gac:
_drawingassembly = assembly.load ("system.drawing, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"); _drawingassembly.gettype("image").getmethod("save").invoke(myimageobject, new object[] { path });
but it's not working. can't type reason; returns null:
var t = _drawingassembly.gettype("image"); // null
you need specify full type name system.drawing.image
indicated documentation:
https://msdn.microsoft.com/en-us/library/y0cd10tb(v=vs.110).aspx
Comments
Post a Comment