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
Copy file name to clipboardExpand all lines: xml/System.Runtime.InteropServices/DefaultDllImportSearchPathsAttribute.xml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@
66
66
2. Otherwise, if the attribute is applied to the assembly that contains the platform invoke, use the values specified by that instance of the attribute.
67
67
68
68
3. Otherwise, search the assembly directory and then call the `LoadLibraryEx` function with the `LOAD_WITH_ALTERED_SEARCH_PATH` flag.
69
-
69
+
70
+
This attribute has no effect on non-Windows platforms or the Mono runtime.
Copy file name to clipboardExpand all lines: xml/System.Runtime.InteropServices/Marshal.xml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7316,7 +7316,7 @@ On .NET 6 and later versions, this method is functionally equivalent to <xref:Sy
7316
7316
7317
7317
## Remarks
7318
7318
<xref:System.Runtime.InteropServices.Marshal.PtrToStructure%2A> is often necessary in COM interop and platform invoke when structure parameters are represented as an <xref:System.IntPtr?displayProperty=nameWithType> value. You cannot use this overload method with value types.
7319
-
7319
+
If the `ptr` parameter equals <xref:System.IntPtr.Zero?displayProperty=nameWithType>, `null` will be returned.
7320
7320
]]></format>
7321
7321
</remarks>
7322
7322
<exception cref="T:System.ArgumentException">Structure layout is not sequential or explicit.
@@ -7395,7 +7395,7 @@ On .NET 6 and later versions, this method is functionally equivalent to <xref:Sy
7395
7395
7396
7396
## Remarks
7397
7397
<xref:System.Runtime.InteropServices.Marshal.PtrToStructure%2A> is often necessary in COM interop and platform invoke when structure parameters are represented as an <xref:System.IntPtr?displayProperty=nameWithType> value. You can pass a value type to this overload method. In this case, the returned object is a boxed instance.
7398
-
7398
+
If the `ptr` parameter equals <xref:System.IntPtr.Zero?displayProperty=nameWithType>, `null` will be returned.
7399
7399
7400
7400
7401
7401
## Examples
@@ -7490,7 +7490,7 @@ On .NET 6 and later versions, this method is functionally equivalent to <xref:Sy
7490
7490
7491
7491
## Remarks
7492
7492
<xref:System.Runtime.InteropServices.Marshal.PtrToStructure%60%601%28System.IntPtr%29> is often necessary in COM interop and platform invoke when structure parameters are represented as <xref:System.IntPtr?displayProperty=nameWithType> values. You can pass a value type to this method overload.
7493
-
7493
+
If the `ptr` parameter equals <xref:System.IntPtr.Zero?displayProperty=nameWithType>, `null` will be returned.
7494
7494
]]></format>
7495
7495
</remarks>
7496
7496
<exception cref="T:System.ArgumentException">The layout of <typeparamref name="T" /> is not sequential or explicit.</exception>
@@ -7555,7 +7555,7 @@ On .NET 6 and later versions, this method is functionally equivalent to <xref:Sy
7555
7555
7556
7556
## Remarks
7557
7557
<xref:System.Runtime.InteropServices.Marshal.PtrToStructure%60%601%28System.IntPtr%2C%60%600%29> is often necessary in COM interop and platform invoke when structure parameters are represented as <xref:System.IntPtr> values. You cannot use this method overload with value types.
7558
-
7558
+
If the `ptr` parameter equals <xref:System.IntPtr.Zero?displayProperty=nameWithType>, `null` will be returned.
7559
7559
]]></format>
7560
7560
</remarks>
7561
7561
<exception cref="T:System.ArgumentException">Structure layout is not sequential or explicit.</exception>
0 commit comments