File: Helpers\ReflectionHelpers.Type.cs
Web Access
Project: src\src\vstest\src\Microsoft.TestPlatform.AdapterUtilities\Microsoft.TestPlatform.AdapterUtilities.csproj (Microsoft.TestPlatform.AdapterUtilities)
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Reflection;

namespace Microsoft.TestPlatform.AdapterUtilities.Helpers;

internal static partial class ReflectionHelpers
{
    internal static bool IsGenericType(Type type)
    {
        return type.IsGenericType;
    }

    internal static MethodBase? GetDeclaringMethod(Type type)
    {
        return type.DeclaringMethod;
    }
}