ReflectionAbstraction
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Renci.SshNet.Abstractions
{
internal static class ReflectionAbstraction
{
public static IEnumerable<T> GetCustomAttributes<T>(this Type type, bool inherit) where T : Attribute
{
return CustomAttributeExtensions.GetCustomAttributes<T>(type.GetTypeInfo(), inherit);
}
}
}