- Bob Seger
Method
Method Methods
Method() | Constructor for the Method class using a base method reference |
Method() | Constructor for the Method class based on the method that it is called from |
IsValid() | Returns true if this Method metadata item is valid |
IsInstance() | Returns true if this Method is an instance method |
Module() | Returns reference to the Module metadata that contains the method |
Class() | Returns reference to the Class metadata that contains the Method (null if a global method) |
ReturnClass() | Returns reference to the Class metadata for the return type of the Method |
GetArgClasses() | Returns an array of Class metadata items respresenting the argument list for the method |
Derived Classes
None
See Also
Class Hierarchy, Script, Unit, Module, Class
public method Method(base method MethodReference)
Parameters
MethodReference
Method reference of the method used for this metadata
Return Value
None
Description
Constructor for the Method class. This implementation uses a method reference to indicate the method to use. If the method ref is not null, the IsValid() method will return true and false if it is null..
Method Class
public method Method()
Parameters
None
Return Value
None
Description
Constructor for the Method class. This implementation takes no arguments. The Method that contains the code that performs the call to this constructor will be used for this Method object. The IsValid() method will return true if it is called from within a method. If invoked from an initialization expression for a global or shared data item, the IsValid() method will return false.
Method Class
public virtual method<bool> IsValid()
Parameters
None
Return Value
True if Method is valid
Description
Virtual method which returns true if the underlying method is valid and false if not.
Method Class
public method<bool> IsInstance()
Parameters
None
Return Value
True if Method is an instance method
Description
Method which returns true if the underlying method is valid and is an instance method of a class and false if not.
Method Class
public method<Module> Module()
Parameters
None
Return Value
Reference to Module that contains the method
Description
Method which returns a reference to the Module object that contains the underlying method.
Method Class
public method<Class> Class()
Parameters
None
Return Value
Reference to Class that contains the method
Description
Method which returns a reference to the Class object that contains the underlying method. It will return null if the method is global.
Method Class
public method<Class> ReturnClass()
Parameters
None
Return Value
Reference to Class object for the method return type
Description
Method which returns a reference to the Class object that contains the underlying method. It will return null if the method is global.
Method Class
public method<Class[]> GetArgClasses()
Parameters
None
Return Value
Array of Class objects for the method arguments
Description
This method returns an array of Class metadata objects that correspond to the arguments for the method. It can be null.
Method Class