Advertisement
Guest User

NonPublic Method Invocation - Part #3

a guest
Jan 5th, 2012
891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. // Program.cs
  2.  
  3. namespace Reflection
  4. {
  5.     using System;
  6.     using System.Reflection;
  7.  
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Invoker invoker = new Invoker();
  13.             SomeClass someClass = new SomeClass(invoker);
  14.  
  15.             foreach (string result in invoker.GetResults())
  16.             {
  17.                 Console.WriteLine(result);
  18.             }
  19.  
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement