You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Provides a <see cref="SafeHandle"/> for memory returned by FWP functions that is disposed using <see cref="FwpmFreeMemory0"/>.</summary>
@@ -600,7 +600,7 @@ public partial class SafeFwpmMem
600
600
/// of elements.
601
601
/// </param>
602
602
/// <returns>An array of type <typeparamref name="T"/> of length <paramref name="elemCount"/>.</returns>
603
-
publicT[]ToArray<T>(SizeTelemCount,boolbyRef)=>byRef?Array.ConvertAll(handle.ToArray<IntPtr>(elemCount)??newIntPtr[0], p =>p.Convert<T>(uint.MaxValue,CharSet.Unicode)!):handle.ToArray<T>(elemCount)??newT[0];
603
+
publicT[]ToArray<T>(SizeTelemCount,boolbyRef)=>byRef?Array.ConvertAll(handle.ToArray<IntPtr>(elemCount)??[], p =>p.Convert<T>(uint.MaxValue,CharSet.Unicode)!):handle.ToArray<T>(elemCount)??[];
604
604
605
605
/// <summary>Extracts a structure from this memory.</summary>
606
606
/// <typeparam name="T">The type of the structure to extract.</typeparam>
0 commit comments