Skip to content

Interface IMethodDescriptor

Definition

Namespace: StardewUI.Framework.Descriptors
Assembly: StardewUI.dll

Describes a single method on some type.

public interface IMethodDescriptor : 
    StardewUI.Framework.Descriptors.IMemberDescriptor

Implements
IMemberDescriptor

Members

Properties

Name Description
ArgumentTypes The exact types expected for the method's arguments.
OptionalArgumentCount The number of optional arguments at the end of the argument list.
ReturnType The method's return type.

Details

Properties

ArgumentTypes

The exact types expected for the method's arguments.

ReadOnlySpan<System.Type> ArgumentTypes { get; }
Property Value

ReadOnlySpan<Type>


OptionalArgumentCount

The number of optional arguments at the end of the argument list.

int OptionalArgumentCount { get; }
Property Value

Int32

Remarks

Optional arguments can be provided with Missing in order to ignore them in the invocation.


ReturnType

The method's return type.

System.Type ReturnType { get; }
Property Value

Type