<PackageReference Include="SSH.NET" Version="2016.1.0-beta1" />

ReflectionAbstraction

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