As in the Question all what i need is an example of code that run file in memory in visual basic with out extract it in HD so that i protect my original content
What I have tried:
Imports System, Microsoft.VisualBasic.CompilerServices
Dim ok As Object = LateBinding.LateGet(New AppDomainManager().EntryAssembly, Nothing, load, New Object() {this is some byte which is my file}, Nothing, Nothing)
Dim method As RuntimeMethodHandle = LateBinding.LateGet(ok.EntryPoint, Nothing, "MethodHandle", Nothing, Nothing, Nothing)
Dim Go As Object = Reflection.Emit.MethodBuilder.GetMethodFromHandle(method)
LateBinding.LateCall(Go, Go.GetType, invoke, New Object() {(0 + 0 + 0 + 0), Nothing}, Nothing, Nothing)
but i get this erorr
Public member '' on type 'Assembly' not found.
which i believe that the problem in "app-domain manager .entry" part