예제 #1
0
 public void ShouldResolveStaticMethodOfExternalClass()
 {
     var csharp = DecompilationResult.CreateFromDelegate <NullCursor, string>(_delegateReader, (cursor, args, keys) =>
     {
         return(SomeInterace.StaticGreeting("def"));
     });
     var redIL = _csharpCompiler.Compile(csharp) as RootNode;
 }
예제 #2
0
 public void ShouldResolveMethodOfExternalInterface()
 {
     var csharp = DecompilationResult.CreateFromDelegate <NullCursor, string>(_delegateReader, (cursor, args, keys) =>
     {
         ISomeInterface foo = new SomeInterace("abc");
         return(foo.Greeting("def"));
     });
     var redIL = _csharpCompiler.Compile(csharp) as RootNode;
 }