Skip to content

Commit b4841ba

Browse files
committed
Do not create a List.
1 parent e30319a commit b4841ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/Abstractions/ReflectionAbstraction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static IEnumerable<T> GetCustomAttributes<T>(this Type type, bool inherit
1616
return type.GetTypeInfo().GetCustomAttributes<T>(inherit);
1717
#else
1818
var attributes = type.GetCustomAttributes(typeof(T), inherit);
19-
return new List<T>(attributes.Cast<T>());
19+
return attributes.Cast<T>();
2020
#endif
2121
}
2222
}

0 commit comments

Comments
 (0)