Class Type<T>.Constructor<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10>
Provides access to constructor of type T with nine parameters.
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Constructor<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10> : object
  Type Parameters
| Name | Description | 
|---|---|
| P1 | Type of first constructor parameter.  | 
      
| P2 | Type of second constructor parameter.  | 
      
| P3 | Type of third constructor parameter.  | 
      
| P4 | Type of fourth constructor parameter.  | 
      
| P5 | Type of fifth constructor parameter.  | 
      
| P6 | Type of sixth constructor parameter.  | 
      
| P7 | Type of sixth constructor parameter.  | 
      
| P8 | Type of eighth constructor parameter.  | 
      
| P9 | Type of ninth constructor parameter.  | 
      
| P10 | Type of tenth constructor parameter.  | 
      
Methods
| Improve this Doc View SourceGet(Boolean)
Returns constructor T with ten parameters.
Declaration
public static Constructor<Func<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T>> Get(bool nonPublic = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Boolean | nonPublic | true to reflect non-public constructor.  | 
      
Returns
| Type | Description | 
|---|---|
| Constructor<Func<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T>> | Reflected constructor with ten parameters; or null, if it doesn't exist.  | 
      
Invoke(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, Boolean)
Invokes constructor.
Declaration
public static T Invoke(P1 arg1, P2 arg2, P3 arg3, P4 arg4, P5 arg5, P6 arg6, P7 arg7, P8 arg8, P9 arg9, P10 arg10, bool nonPublic = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| P1 | arg1 | First constructor argument.  | 
      
| P2 | arg2 | Second constructor argument.  | 
      
| P3 | arg3 | Third constructor argument.  | 
      
| P4 | arg4 | Fourth constructor argument.  | 
      
| P5 | arg5 | Fifth constructor argument.  | 
      
| P6 | arg6 | Sixth constructor argument.  | 
      
| P7 | arg7 | Seventh constructor argument.  | 
      
| P8 | arg8 | Eighth constructor argument.  | 
      
| P9 | arg9 | Ninth constructor argument.  | 
      
| P10 | arg10 | Tenth constructor argument.  | 
      
| Boolean | nonPublic | true to reflect non-public constructor.  | 
      
Returns
| Type | Description | 
|---|---|
| T | Instance of   | 
      
Exceptions
| Type | Condition | 
|---|---|
| MissingConstructorException | Constructor doesn't exist.  | 
      
Require(Boolean)
Returns constructor T with ten parameters.
Declaration
public static Constructor<Func<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T>> Require(bool nonPublic = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Boolean | nonPublic | true to reflect non-public constructor.  | 
      
Returns
| Type | Description | 
|---|---|
| Constructor<Func<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T>> | Reflected constructor with ten parameters.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| MissingConstructorException | Constructor doesn't exist.  | 
      
TryInvoke(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, Boolean)
Invokes constructor.
Declaration
public static Optional<T> TryInvoke(P1 arg1, P2 arg2, P3 arg3, P4 arg4, P5 arg5, P6 arg6, P7 arg7, P8 arg8, P9 arg9, P10 arg10, bool nonPublic = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| P1 | arg1 | First constructor argument.  | 
      
| P2 | arg2 | Second constructor argument.  | 
      
| P3 | arg3 | Third constructor argument.  | 
      
| P4 | arg4 | Fourth constructor argument.  | 
      
| P5 | arg5 | Fifth constructor argument.  | 
      
| P6 | arg6 | Sixth constructor argument.  | 
      
| P7 | arg7 | Seventh constructor argument.  | 
      
| P8 | arg8 | Eighth constructor argument.  | 
      
| P9 | arg9 | Ninth constructor argument.  | 
      
| P10 | arg10 | Tenth constructor argument.  | 
      
| Boolean | nonPublic | true to reflect non-public constructor.  | 
      
Returns
| Type | Description | 
|---|---|
| Optional<T> | Instance of   |