|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Loading an assembly from a streamIs there a way to load an assembly from a stream instead of from the
file system? The static methods in System.Assembly.Reflection don't support anything other than file names or assembly names as a source for the various Load methods. TIA Henning. hmoeller wrote:
> Is there a way to load an assembly from a stream instead of from the I haven't checked the docs right now, but I know there is some > file system? The static methods in System.Assembly.Reflection don't > support anything other than file names or assembly names as a source > for the various Load methods. Assembly.Load method that takes a byte array. You just have to read the bytes from the stream into an array and pass that to the load function. Can you get it to work with that? If not, I'll go check the docs later. Max Markus Stoeger wrote:
> I haven't checked the docs right now, but I know there is some *Blush* I focused my search on "Stream". Obviously, this is exactly> Assembly.Load method that takes a byte array. You just have to read the > bytes from the stream into an array and pass that to the load function. > > Can you get it to work with that? If not, I'll go check the docs later. what I was looking for. Thanks a lot. Henning. |
|||||||||||||||||||||||