GPCore - The Gibphone API

GPArgumentMethodAttribute Constructor 

Creates a new GPMethodAttribute.

[Visual Basic]
Public Sub New( _
   ByVal String As String, _
   ByVal Type As Type, _
   ParamArray Object[] As Object() _
)
[C#]
public GPArgumentMethodAttribute(
   String name,
   Type action,
   params Object[] args
);

Parameters

name
The Text that will be put in the menu.
action
The Type of element this method modifies.
args
A List of Arguments in the format (name, Type)

Example

A sample Usage is

public interface IDOStuff
{
    [GPArgumentMethod("Do Something",typeof(User),"Name",typeof(string),"ID", typeof(int),"When",typeof(DateTime))]
    void DoSomething(String name, int id, DateTime time);
}

See Also

GPArgumentMethodAttribute Class | GPCore.Attributes Namespace