Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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