Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
|
||||
class Example
|
||||
{
|
||||
public int foo(int x)
|
||||
{
|
||||
return 42 + x;
|
||||
}
|
||||
}
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var example = new Example();
|
||||
var method = "foo";
|
||||
|
||||
var result = (int)example.GetType().GetMethod(method).Invoke(example, new object[]{ 5 });
|
||||
Console.WriteLine("{0}(5) = {1}", method, result);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue