Show / Hide Table of Contents

    Method IsGenericTypeOf

    IsGenericTypeOf(Type, Type)

    Evaluates whether the provided Type, an interface or a base type thereof has a generic type definition that is equal to this Type.
    Declaration
    public static bool IsGenericTypeOf(this Type genericType, Type type)
    Parameters
    Type Name Description
    Type genericType This generic Type to test for.
    Type type The Type to check for compatible generic type definitions.
    Returns
    Type Description
    Boolean true, if type has a generic type definition equal to this genericType, otherwise false.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.