diff --git a/src/prod/src/managed/Api/src/System/Fabric/OperationData.cs b/src/prod/src/managed/Api/src/System/Fabric/OperationData.cs index 41f7ac5b2..44b673362 100644 --- a/src/prod/src/managed/Api/src/System/Fabric/OperationData.cs +++ b/src/prod/src/managed/Api/src/System/Fabric/OperationData.cs @@ -106,7 +106,7 @@ internal static OperationData CreateFromNative(uint count, IntPtr buffer) private static unsafe IList> CreateFromNativeInternal(uint count, IntPtr buffer) { - List> returnValue = new List>(); + List> returnValue = new List>(count); for (int i = 0; i < count; i++) { @@ -117,4 +117,4 @@ private static unsafe IList> CreateFromNativeInternal(uint co return returnValue.AsReadOnly(); } } -} \ No newline at end of file +}