Method ForMethod
ForMethod(MethodInfo)
Creates a descriptor for a parameterless, value-returning method.
public static MemberDescriptor ForMethod(MethodInfo method)
Parameters
methodMethodInfoThe method to describe.
Returns
- MemberDescriptor
The descriptor.
Exceptions
- ArgumentNullException
methodis null.- ArgumentException
The method takes parameters or returns void.