OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface ICommandParameterResolveProvider

A provider for resolving command parameters.

Namespace: OpenMod.API.Commands
Assembly: OpenMod.API.dll
Syntax
public interface ICommandParameterResolveProvider

Methods

| Improve this Doc View Source

ResolveAsync(Type, String)

Resolves an object of the given type from the input.

Declaration
Task<object?> ResolveAsync(Type type, string input)
Parameters
Type Name Description
Type type
System.String input
Returns
Type Description
Task<System.Nullable<System.Object>>
| Improve this Doc View Source

Supports(Type)

Determines whether the given type is supported by this resolver.

Declaration
bool Supports(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
System.Boolean

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)