Constructor ConverterDelegateFactory
- Namespace
- DSharpPlus.Commands.Processors
- Assembly
- DSharpPlus.Commands.dll
ConverterDelegateFactory(BaseCommandProcessor<TConverter, TConverterContext, TCommandContext>, Type, TConverter)
Creates a new converter delegate factory, which will use the provided converter instance to create the delegate.
public ConverterDelegateFactory(BaseCommandProcessor<TConverter, TConverterContext, TCommandContext> processor, Type parameterType, TConverter converter)
Parameters
processor
BaseCommandProcessor<TConverter, TConverterContext, TCommandContext>The command processor that this converter is associated with.
parameterType
TypeThe parameter type that this converter converts to.
converter
TConverterThe converter instance to use.
ConverterDelegateFactory(BaseCommandProcessor<TConverter, TConverterContext, TCommandContext>, Type, Type)
Creates a new converter delegate factory, which will obtain or construct ConverterInstance through the service provider as needed. The converter delegate will be created using the newly created converter instance.
public ConverterDelegateFactory(BaseCommandProcessor<TConverter, TConverterContext, TCommandContext> processor, Type parameterType, Type converterType)
Parameters
processor
BaseCommandProcessor<TConverter, TConverterContext, TCommandContext>parameterType
TypeconverterType
Type