We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30319a commit b4841baCopy full SHA for b4841ba
src/Renci.SshNet/Abstractions/ReflectionAbstraction.cs
@@ -16,7 +16,7 @@ public static IEnumerable<T> GetCustomAttributes<T>(this Type type, bool inherit
16
return type.GetTypeInfo().GetCustomAttributes<T>(inherit);
17
#else
18
var attributes = type.GetCustomAttributes(typeof(T), inherit);
19
- return new List<T>(attributes.Cast<T>());
+ return attributes.Cast<T>();
20
#endif
21
}
22
0 commit comments