Resolve complex param sample reference (#2166)

This commit is contained in:
Armano den Boef
2022-03-03 22:19:25 +01:00
committed by GitHub
parent 1ba96d6fbd
commit 7262990654

View File

@@ -150,7 +150,7 @@ Constructor methods support every attribute type that can be used with the regul
Preferred constructor of a Type can be specified either by passing a `Type[]` to the `[ComplexParameterAttribute]` or tagging a type constructor with the `[ComplexParameterCtorAttribute]`. If nothing is specified, the InteractionService defaults to the only public constructor of the type. Preferred constructor of a Type can be specified either by passing a `Type[]` to the `[ComplexParameterAttribute]` or tagging a type constructor with the `[ComplexParameterCtorAttribute]`. If nothing is specified, the InteractionService defaults to the only public constructor of the type.
TypeConverter pattern is used to parse the constructor methods objects. TypeConverter pattern is used to parse the constructor methods objects.
[!code-csharp[Complex Parameter](samples/intro/usercommand.cs)] [!code-csharp[Complex Parameter](samples/intro/complexparams.cs)]
Interaction service complex parameter constructors are prioritized in the following order: Interaction service complex parameter constructors are prioritized in the following order: