Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Runtime / InteropServices / HandleRef.cs / 1 / 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
- BitmapVisualManager.cs
- OdbcTransaction.cs
- DisableDpiAwarenessAttribute.cs
- IndexOutOfRangeException.cs
- LockCookie.cs
- WebUtility.cs
- Group.cs
- XPathDocument.cs
- CompressStream.cs
- FrameworkElementFactory.cs
- HostProtectionException.cs
- TokenDescriptor.cs
- ToolStripScrollButton.cs
- FormViewDeletedEventArgs.cs
- NativeMethods.cs
- FixedSOMTextRun.cs
- DataServiceClientException.cs
- FlowLayoutPanelDesigner.cs
- PersonalizationProviderHelper.cs
- AttributeConverter.cs
- SectionXmlInfo.cs
- ListViewItemMouseHoverEvent.cs
- TemplateComponentConnector.cs
- CompilationLock.cs
- Cloud.cs
- PropertyGridCommands.cs
- BooleanFacetDescriptionElement.cs
- ManagementEventWatcher.cs
- XdrBuilder.cs
- WindowShowOrOpenTracker.cs
- MailMessage.cs
- TemplateXamlParser.cs
- SignatureToken.cs
- CheckableControlBaseAdapter.cs
- QueryInterceptorAttribute.cs
- BindingOperations.cs
- COM2ColorConverter.cs
- SyndicationSerializer.cs
- GridViewDeleteEventArgs.cs
- SqlParameter.cs
- FontFamily.cs
- TextLineResult.cs
- ToolBar.cs
- StorageEntityTypeMapping.cs
- adornercollection.cs
- XmlSerializationWriter.cs
- CornerRadius.cs
- AppSettingsReader.cs
- ButtonBaseDesigner.cs
- SamlAuthorityBinding.cs
- DependencyPropertyDescriptor.cs
- ZipFileInfo.cs
- XmlBufferedByteStreamReader.cs
- ByteStack.cs
- ModelVisual3D.cs
- Interfaces.cs
- ConsoleCancelEventArgs.cs
- XPathDocumentNavigator.cs
- ReverseInheritProperty.cs
- ClientTarget.cs
- DateTimeParse.cs
- CreateCardRequest.cs
- BoolExpressionVisitors.cs
- SecurityTokenRequirement.cs
- AlternateView.cs
- ProfilePropertyMetadata.cs
- ToolboxItemAttribute.cs
- XmlSchemaInfo.cs
- _LocalDataStoreMgr.cs
- StringReader.cs
- UseLicense.cs
- Profiler.cs
- ViewGenerator.cs
- EndpointDiscoveryMetadata11.cs
- NonSerializedAttribute.cs
- SecurityTokenResolver.cs
- PropertyGeneratedEventArgs.cs
- StringWriter.cs
- UserPersonalizationStateInfo.cs
- PathGeometry.cs
- BrowserCapabilitiesFactoryBase.cs
- FormViewPagerRow.cs
- ContainerUtilities.cs
- DictionaryEditChange.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- LabelEditEvent.cs
- PartialArray.cs
- CacheManager.cs
- DataServiceClientException.cs
- MultilineStringEditor.cs
- ContentType.cs
- X509Chain.cs
- ValueProviderWrapper.cs
- SqlEnums.cs
- QuaternionAnimation.cs
- InputElement.cs
- ValueQuery.cs
- HwndHostAutomationPeer.cs
- RadioButtonAutomationPeer.cs
- RootDesignerSerializerAttribute.cs