Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim domain As AppDomain = AppDomain.CreateDomain("Executor")
- Dim buffer() As Byte = IO.File.ReadAllBytes("c:pathLocator.dll")
- Dim asy As Assembly = domain.Load(buffer)
- Dim obj As [Object] = asy.CreateInstance("Locator.Place")
- Dim method As MethodInfo = obj.GetType.GetMethod("Where")
- Dim result as Integer = method.Invoke(obj, New [Object]() { 1 })
- AppDomain.Unload(domain)
- Dim asy As Assembly = domain.Load(buffer)
- 'Could not load file or assembly 'Place, Version=1.0.0.0, Culture=neutral, PublicKeyToken-null' or one of it's dependencies. The System Cannot find the specified file.'
Add Comment
Please, Sign In to add comment