Skip to content

Commit 1ce21e4

Browse files
committed
Use List.Count instead of Enumerable.Count().
1 parent 1cfa144 commit 1ce21e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/Common/DerData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public DerData(byte[] data)
8585
/// <returns>DER Encoded array.</returns>
8686
public byte[] Encode()
8787
{
88-
var length = _data.Count();
88+
var length = _data.Count;
8989
var lengthBytes = GetLength(length);
9090

9191
_data.InsertRange(0, lengthBytes);

0 commit comments

Comments
 (0)