Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FontFamilyConverter.cs
- AnimationClockResource.cs
- autovalidator.cs
- TitleStyle.cs
- ModelItem.cs
- DiagnosticEventProvider.cs
- OleDbTransaction.cs
- MailMessageEventArgs.cs
- AuthStoreRoleProvider.cs
- SelectedDatesCollection.cs
- XmlAggregates.cs
- QilUnary.cs
- FontCacheLogic.cs
- DeferrableContentConverter.cs
- RoutingChannelExtension.cs
- WebBrowserBase.cs
- UInt16Converter.cs
- ServiceDocument.cs
- RichTextBoxAutomationPeer.cs
- ContentPlaceHolderDesigner.cs
- WebProxyScriptElement.cs
- StructuredTypeInfo.cs
- AssemblyResourceLoader.cs
- ObjectHandle.cs
- RunWorkerCompletedEventArgs.cs
- ListView.cs
- BamlReader.cs
- WebColorConverter.cs
- AppDomainManager.cs
- CodeBinaryOperatorExpression.cs
- VirtualPathUtility.cs
- ControlPropertyNameConverter.cs
- CodeExpressionStatement.cs
- SHA384.cs
- IndexedString.cs
- Label.cs
- Point3DCollection.cs
- BindingObserver.cs
- MatrixConverter.cs
- StrongNameUtility.cs
- Span.cs
- HttpListener.cs
- ValidationSummary.cs
- QueryCacheKey.cs
- BrowserCapabilitiesFactory.cs
- SecurityState.cs
- ExpressionPrefixAttribute.cs
- WindowsListViewItemStartMenu.cs
- ApplyImportsAction.cs
- Rotation3D.cs
- DbCommandTree.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CharConverter.cs
- WindowsRegion.cs
- DBConnectionString.cs
- EndpointAddressProcessor.cs
- LogExtentCollection.cs
- TableParagraph.cs
- TraceXPathNavigator.cs
- LinearGradientBrush.cs
- BitmapFrameDecode.cs
- XmlMembersMapping.cs
- DataGridColumnCollection.cs
- BStrWrapper.cs
- PackWebResponse.cs
- FullTrustAssemblyCollection.cs
- LocatorPartList.cs
- FtpCachePolicyElement.cs
- TimerElapsedEvenArgs.cs
- ClientScriptItemCollection.cs
- InstanceCreationEditor.cs
- PageContentCollection.cs
- ConfigurationSectionHelper.cs
- AbsoluteQuery.cs
- XComponentModel.cs
- IntSecurity.cs
- BinaryObjectReader.cs
- AuthenticationModuleElement.cs
- Reference.cs
- DataColumnPropertyDescriptor.cs
- FormClosingEvent.cs
- DataControlFieldHeaderCell.cs
- SafeViewOfFileHandle.cs
- WSHttpSecurityElement.cs
- CachingHintValidation.cs
- HtmlTextArea.cs
- WindowsClaimSet.cs
- XsdBuilder.cs
- XsdBuilder.cs
- Command.cs
- SymbolMethod.cs
- HotSpot.cs
- GregorianCalendar.cs
- ProcessModelSection.cs
- PartialCachingControl.cs
- SystemException.cs
- GenericTextProperties.cs
- TextCompositionEventArgs.cs
- LayoutTable.cs
- TextDecorationCollectionConverter.cs