Show / Hide Table of Contents

Class Type<T>.Constructor<T1, T2, T3, T4, T5, T6, T7>

Provides access to constructor of type T with seven parameters.

Inheritance
Object
Type<T>.Constructor<T1, T2, T3, T4, T5, T6, T7>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Constructor<T1, T2, T3, T4, T5, T6, T7>
Type Parameters
Name Description
T1

Type of first constructor parameter.

T2

Type of second constructor parameter.

T3

Type of third constructor parameter.

T4

Type of fourth constructor parameter.

T5

Type of fifth constructor parameter.

T6

Type of sixth constructor parameter.

T7

Type of seventh constructor parameter.

Methods

| Improve this Doc View Source

Get(Boolean)

Returns constructor T with seven parameters.

Declaration
public static Constructor<Func<T1, T2, T3, T4, T5, T6, T7, T>> Get(bool nonPublic = false)
Parameters
Type Name Description
Boolean nonPublic

true to reflect non-public constructor.

Returns
Type Description
Constructor<Func<T1, T2, T3, T4, T5, T6, T7, T>>

Reflected constructor with seven parameters; or null, if it doesn't exist.

| Improve this Doc View Source

Invoke(T1, T2, T3, T4, T5, T6, T7, Boolean)

Invokes constructor.

Declaration
public static T Invoke(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, bool nonPublic = false)
Parameters
Type Name Description
T1 arg1

First constructor argument.

T2 arg2

Second constructor argument.

T3 arg3

Third constructor argument.

T4 arg4

Fourth constructor argument.

T5 arg5

Fifth constructor argument.

T6 arg6

Sixth constructor argument.

T7 arg7

Seventh constructor argument.

Boolean nonPublic

true to reflect non-public constructor.

Returns
Type Description
T

Instance of T.

Exceptions
Type Condition
MissingConstructorException

Constructor doesn't exist.

| Improve this Doc View Source

Require(Boolean)

Returns constructor T with seven parameters.

Declaration
public static Constructor<Func<T1, T2, T3, T4, T5, T6, T7, T>> Require(bool nonPublic = false)
Parameters
Type Name Description
Boolean nonPublic

true to reflect non-public constructor.

Returns
Type Description
Constructor<Func<T1, T2, T3, T4, T5, T6, T7, T>>

Reflected constructor with seven parameters.

Exceptions
Type Condition
MissingConstructorException

Constructor doesn't exist.

| Improve this Doc View Source

TryInvoke(T1, T2, T3, T4, T5, T6, T7, Boolean)

Invokes constructor.

Declaration
public static Optional<T> TryInvoke(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, bool nonPublic = false)
Parameters
Type Name Description
T1 arg1

First constructor argument.

T2 arg2

Second constructor argument.

T3 arg3

Third constructor argument.

T4 arg4

Fourth constructor argument.

T5 arg5

Fifth constructor argument.

T6 arg6

Sixth constructor argument.

T7 arg7

Seventh constructor argument.

Boolean nonPublic

true to reflect non-public constructor.

Returns
Type Description
Optional<T>

Instance of T if constructor exists.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX