Table of Contents

Method GetGenericTypeBindings

Namespace
Bonsai
Assembly
Bonsai.Core.dll

GetGenericTypeBindings(Type, Type)

Returns an array of Type objects that represent the bounded type parameters resulting from matching the specified generic type with a concrete type.

public static Type[] GetGenericTypeBindings(Type genericType, Type type)

Parameters

genericType Type

The generic type definition used to test for bindings.

type Type

The Type used to bind against genericType.

Returns

Type[]

The array of Type objects representing the bounded type parameters, or an empty array, in case no compatible bindings are found.