Created
July 22, 2021 01:56
-
-
Save csharpforevermore/8e4ef3d7b2ba08f4441e2b71264cb4e4 to your computer and use it in GitHub Desktop.
Lists out the methods of the class Student
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void GetMethodsUsingReflection() | |
{ | |
MethodInfo[] methodInfos = typeof(Student).GetMethods(); | |
foreach (MethodInfo methodInfo in methodInfos) | |
{ | |
Response.Write(Environment.NewLine + methodInfo.Name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment