Explorar el Código

Use List.Count instead of Enumerable.Count().

drieseng hace 9 años
padre
commit
1ce21e4ed7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Renci.SshNet/Common/DerData.cs

+ 1 - 1
src/Renci.SshNet/Common/DerData.cs

@@ -85,7 +85,7 @@ namespace Renci.SshNet.Common
         /// <returns>DER Encoded array.</returns>
         public byte[] Encode()
         {
-            var length = _data.Count();
+            var length = _data.Count;
             var lengthBytes = GetLength(length);
 
             _data.InsertRange(0, lengthBytes);