Type myType = typeof(MyClass); MemberInfo[] myFieldMembers = myType.FindMembers(MemberTypes.Field, BindingFlags.Public | BindingFlags.Instance, Type.FilterName, "*");
Type myType = typeof(MyClass); MemberInfo[] myPropertyMembers = myType.FindMembers(MemberTypes.Property, BindingFlags.Public | BindingFlags.Instance, Type.FilterName, "MyProperty");
Type myType = typeof(MyClass); MemberInfo[] myMethodMembers = myType.FindMembers(MemberTypes.Method, BindingFlags.Static | BindingFlags.Public, Type.FilterReturnType, typeof(int));The System Type FindMembers method is part of the System.Reflection namespace in the .NET Framework, which is a set of libraries that provides information about types, objects, and assemblies.