03.01.2015 Views

C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

872 ❘ Appendix X Reflection<br />

(continued)<br />

Property<br />

IsGenericMethod<br />

IsGenericMethodDefinition<br />

IsPrivate<br />

IsPublic<br />

IsStatic<br />

IsVirtual<br />

ReturnParameter<br />

ReturnType<br />

Description<br />

Returns true if the method is an instance of a generic<br />

method.<br />

Returns true if the method is a generic method definition.<br />

Returns true if the method is private.<br />

Returns true if the method is public.<br />

Returns true if the method is static.<br />

Returns true if the method is virtual.<br />

Returns a ParameterInfo object representing the method’s<br />

return type.<br />

Returns the method’s return type.<br />

The following table lists the most useful MethodInfo methods that are not inherited from the<br />

MemberInfo class.<br />

Method<br />

CreateDelegate<br />

GetGenericArguments<br />

GetGenericMethodDefinition<br />

GetParameters<br />

Invoke<br />

MakeGenericMethod<br />

Description<br />

Returns a delegate for the method.<br />

Returns an array of Type objects representing the method’s<br />

generic arguments.<br />

For an instance of a generic method, returns a MethodInfo<br />

object representing the method’s generic definition.<br />

Returns information about the method’s parameters.<br />

Invokes the method, passing it specified parameters.<br />

For a generic method definition, returns a MethodInfo<br />

representing the method with specific types inserted in<br />

place of the generic type parameters.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!