Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / HandleRef.cs / 1305376 / HandleRef.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.InteropServices { using System; [System.Runtime.InteropServices.ComVisible(true)] public struct HandleRef { // ! Do not add or rearrange fields as the EE depends on this layout. //------------------------------------------------------------------ internal Object m_wrapper; internal IntPtr m_handle; //----------------------------------------------------------------- public HandleRef(Object wrapper, IntPtr handle) { m_wrapper = wrapper; m_handle = handle; } public Object Wrapper { get { return m_wrapper; } } public IntPtr Handle { get { return m_handle; } } public static explicit operator IntPtr(HandleRef value) { return value.m_handle; } public static IntPtr ToIntPtr(HandleRef value) { return value.m_handle; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.InteropServices { using System; [System.Runtime.InteropServices.ComVisible(true)] public struct HandleRef { // ! Do not add or rearrange fields as the EE depends on this layout. //------------------------------------------------------------------ internal Object m_wrapper; internal IntPtr m_handle; //----------------------------------------------------------------- public HandleRef(Object wrapper, IntPtr handle) { m_wrapper = wrapper; m_handle = handle; } public Object Wrapper { get { return m_wrapper; } } public IntPtr Handle { get { return m_handle; } } public static explicit operator IntPtr(HandleRef value) { return value.m_handle; } public static IntPtr ToIntPtr(HandleRef value) { return value.m_handle; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ADMembershipUser.cs
- QueryGeneratorBase.cs
- GlyphRunDrawing.cs
- EventDescriptor.cs
- FacetDescriptionElement.cs
- TemplateColumn.cs
- ConnectionConsumerAttribute.cs
- ExecutedRoutedEventArgs.cs
- HttpCookie.cs
- StorageInfo.cs
- XmlJsonWriter.cs
- SmtpClient.cs
- CurrentChangingEventManager.cs
- SafeNativeMethods.cs
- WbemException.cs
- Vector.cs
- EntityException.cs
- MemberProjectionIndex.cs
- UriScheme.cs
- ExtendedProtectionPolicyElement.cs
- SqlRowUpdatedEvent.cs
- ParentControlDesigner.cs
- WebResourceAttribute.cs
- OdbcConnectionFactory.cs
- _RequestCacheProtocol.cs
- RequestCachePolicyConverter.cs
- FunctionParameter.cs
- ModuleConfigurationInfo.cs
- BitmapEffectDrawingContent.cs
- ApplicationDirectory.cs
- MessageSecurityVersion.cs
- IUnknownConstantAttribute.cs
- HybridObjectCache.cs
- QilIterator.cs
- StretchValidation.cs
- DataGridViewCellStyleEditor.cs
- AssemblyName.cs
- ToolStripOverflow.cs
- Pkcs7Signer.cs
- CodeArrayCreateExpression.cs
- ColorTransformHelper.cs
- GeometryHitTestResult.cs
- X509CertificateTrustedIssuerElementCollection.cs
- Context.cs
- WebUtil.cs
- KoreanLunisolarCalendar.cs
- EpmHelper.cs
- RIPEMD160Managed.cs
- NamespaceList.cs
- XmlNullResolver.cs
- SettingsPropertyValueCollection.cs
- DataGridView.cs
- OutputCacheProfileCollection.cs
- WindowsToolbarItemAsMenuItem.cs
- ContextBase.cs
- PreservationFileWriter.cs
- ImageListImage.cs
- EntityTypeEmitter.cs
- CultureSpecificCharacterBufferRange.cs
- ColumnHeader.cs
- StringWriter.cs
- PostBackOptions.cs
- ParamArrayAttribute.cs
- odbcmetadatafactory.cs
- Stylesheet.cs
- AppSettingsExpressionBuilder.cs
- StreamUpdate.cs
- HtmlString.cs
- ProtocolsSection.cs
- RegexReplacement.cs
- _FtpControlStream.cs
- PerformanceCounter.cs
- NativeMethods.cs
- DependencyObjectType.cs
- ResourceExpression.cs
- TextBox.cs
- SystemEvents.cs
- ConsoleKeyInfo.cs
- panel.cs
- login.cs
- XsdBuilder.cs
- DataRow.cs
- CAGDesigner.cs
- GiveFeedbackEvent.cs
- MultipleViewProviderWrapper.cs
- RadioButtonFlatAdapter.cs
- GB18030Encoding.cs
- Block.cs
- GridView.cs
- PropertyGeneratedEventArgs.cs
- SchemaManager.cs
- RectAnimationClockResource.cs
- Attributes.cs
- UserCancellationException.cs
- StorageScalarPropertyMapping.cs
- UIPropertyMetadata.cs
- ListItemConverter.cs
- HijriCalendar.cs
- PriorityBindingExpression.cs
- SoapExtension.cs