2 instantiations of PinnedGCHandle
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
108
public static PinnedGCHandle<T> FromIntPtr(IntPtr value) => new
PinnedGCHandle
<T>(value);
System.Security.Cryptography (1)
System\Security\Cryptography\PinAndClear.cs (1)
17
_gcHandle = new
PinnedGCHandle
<byte[]>(data),
24 references to PinnedGCHandle
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
25
/// <seealso cref="
PinnedGCHandle
{T}"/>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandleExtensions.cs (2)
29
this
PinnedGCHandle
<T[]> handle)
52
this
PinnedGCHandle
<string> handle)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (19)
23
/// <typeparam name="T">The type of the object this <see cref="
PinnedGCHandle
{T}"/> tracks to.</typeparam>
24
public struct PinnedGCHandle<T> : IEquatable<
PinnedGCHandle
<T>>, IDisposable
33
/// <param name="target">The object that uses the <see cref="
PinnedGCHandle
{T}"/>.</param>
66
/// Retrieves the address of object data in a <see cref="
PinnedGCHandle
{T}"/>.
75
/// For array or <see cref="string"/>, use <see cref="GCHandleExtensions.GetAddressOfArrayData{T}(
PinnedGCHandle
{T[]})"/>
76
/// or <see cref="GCHandleExtensions.GetAddressOfStringData(
PinnedGCHandle
{string})"/> instead.
97
/// Returns a new <see cref="
PinnedGCHandle
{T}"/> object created from a handle to a managed object.
99
/// <param name="value">An <see cref="IntPtr"/> handle to a managed object to create a <see cref="
PinnedGCHandle
{T}"/> object from.</param>
100
/// <returns>A new <see cref="
PinnedGCHandle
{T}"/> object that corresponds to the value parameter.</returns>
104
/// The <see cref="IntPtr"/> representation of <see cref="
PinnedGCHandle
{T}"/> is not
108
public static
PinnedGCHandle
<T> FromIntPtr(IntPtr value) => new PinnedGCHandle<T>(value);
111
/// Returns the internal integer representation of a <see cref="
PinnedGCHandle
{T}"/> object.
113
/// <param name="value">A <see cref="
PinnedGCHandle
{T}"/> object to retrieve an internal integer representation from.</param>
114
/// <returns>An <see cref="IntPtr"/> object that represents a <see cref="
PinnedGCHandle
{T}"/> object.</returns>
116
/// The <see cref="IntPtr"/> representation of <see cref="
PinnedGCHandle
{T}"/> is not
119
public static IntPtr ToIntPtr(
PinnedGCHandle
<T> value) => value._handle;
121
/// <summary>Releases this <see cref="
PinnedGCHandle
{T}"/>.</summary>
136
public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is
PinnedGCHandle
<T> handle && Equals(handle);
139
public readonly bool Equals(
PinnedGCHandle
<T> other) => _handle == other._handle;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
689
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.
PinnedGCHandle
<>))]
System.Security.Cryptography (1)
System\Security\Cryptography\PinAndClear.cs (1)
11
private
PinnedGCHandle
<byte[]> _gcHandle;