Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created July 22, 2021 01:56
Show Gist options
  • Save csharpforevermore/8e4ef3d7b2ba08f4441e2b71264cb4e4 to your computer and use it in GitHub Desktop.
Save csharpforevermore/8e4ef3d7b2ba08f4441e2b71264cb4e4 to your computer and use it in GitHub Desktop.
Lists out the methods of the class Student
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