repl.it
@kironroy/

dynamic

C#

No description

fork
loading
Files
  • main.cs
  • main.exe
  • notes.txt
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;

class MainClass {
  public static void Main (string[] args) {
   object obj = "Zeil";
   obj.GetHashCode();

   var methodInfo = obj.GetType().GetMethod("GetHashCode");
   methodInfo.Invoke(null, null);

   dynamic excelObject = "Neil";
   excelObject.Optimize();   
   }
}