Пример #1
0
 /// <summary>Releases a <see cref="T:System.Runtime.InteropServices.GCHandle" />.</summary>
 /// <exception cref="T:System.InvalidOperationException">The handle was freed or never initialized. </exception>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
 /// </PermissionSet>
 public void Free()
 {
     GCHandle.FreeHandle(this.handle);
     this.handle = 0;
 }