tonerdo / pose

Replace any .NET method (including static and non-virtual) with a delegate
MIT License
1.07k stars 75 forks source link

Does not work if you pass byte array #35

Open rmanoher opened 5 years ago

rmanoher commented 5 years ago

const string someFile = "R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw=="; byte[] bytes = Convert.FromBase64String(someFile); PoseContext.Isolate(() => { var x = instance.Class(bytes ); }, shim);