File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 var comstructorEntity = typeof(Senator).Constructors().Find(("Bob Dole", 98)) // Passing a tuple of values
2828
2929 // Find a matching MethodInfo object based on argument values
30- var methodInfo = Type<Senator>.Methods["RunForPresident"].Find([typeof(int), typeof(bool)]); // Find method by argument types
31- var methodInfo = typeof(Senator).Methods()["RunForPresident"].Find([typeof(int), typeof(bool)]); // Find method by argument types
32- var methodInfo = Type<Senator>.Methods["RunForPresident"].Find([1996, true]); // Passing an array of values
33- var methodInfo = typeof(Senator).Methods()["RunForPresident"].Find([1996, true]); // Passing an array of values
34- var methodInfo = Type<Senator>.Methods["RunForPresident"].Find((1996, true)); // Passing a tuple of values
35- var methodInfo = typeof(Senator).Methods()["RunForPresident"].Find((1996, true)); // Passing a tuple of values
30+ var methodEntity = Type<Senator>.Methods["RunForPresident"].Find([typeof(int), typeof(bool)]); // Find method by argument types
31+ var methodEntity = typeof(Senator).Methods()["RunForPresident"].Find([typeof(int), typeof(bool)]); // Find method by argument types
32+ var methodEntity = Type<Senator>.Methods["RunForPresident"].Find([1996, true]); // Passing an array of values
33+ var methodEntity = typeof(Senator).Methods()["RunForPresident"].Find([1996, true]); // Passing an array of values
34+ var methodEntity = Type<Senator>.Methods["RunForPresident"].Find((1996, true)); // Passing a tuple of values
35+ var methodEntity = typeof(Senator).Methods()["RunForPresident"].Find((1996, true)); // Passing a tuple of values
3636
3737 // Get a field value
3838 var fieldValue = Type<Senator>.Fields["_Bills"].GetValue(instance);
You can’t perform that action at this time.
0 commit comments