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
processorBaseCommandProcessor<TConverter, TConverterContext, TCommandContext>The command processor that this converter is associated with.
parameterTypeTypeThe parameter type that this converter converts to.
converterTConverterThe 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
processorBaseCommandProcessor<TConverter, TConverterContext, TCommandContext>parameterTypeTypeconverterTypeType