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
- WsdlBuildProvider.cs
- ProfessionalColorTable.cs
- TextPattern.cs
- CanonicalizationDriver.cs
- XmlFormatExtensionAttribute.cs
- Rotation3DAnimation.cs
- FormsAuthenticationTicket.cs
- SafeEventLogWriteHandle.cs
- CommonXSendMessage.cs
- HtmlInputRadioButton.cs
- ToolboxItemCollection.cs
- PointCollectionValueSerializer.cs
- HttpCacheVaryByContentEncodings.cs
- DBConcurrencyException.cs
- Vector3D.cs
- ViewGenResults.cs
- ControlCollection.cs
- httpserverutility.cs
- XsdDataContractImporter.cs
- SqlParameter.cs
- LayoutInformation.cs
- DragSelectionMessageFilter.cs
- SchemaElementLookUpTableEnumerator.cs
- HttpContext.cs
- XXXInfos.cs
- TextBoxBase.cs
- ArraySortHelper.cs
- LogicalTreeHelper.cs
- ResourceDictionary.cs
- AddressHeaderCollection.cs
- XmlProcessingInstruction.cs
- CmsUtils.cs
- WebPartUserCapability.cs
- ThreadStateException.cs
- HtmlMeta.cs
- Queue.cs
- ReflectPropertyDescriptor.cs
- RectangleHotSpot.cs
- DataGridCell.cs
- MatrixCamera.cs
- WpfKnownTypeInvoker.cs
- PageThemeCodeDomTreeGenerator.cs
- DataBindingsDialog.cs
- UIElementAutomationPeer.cs
- MILUtilities.cs
- CounterCreationDataConverter.cs
- DispatcherHookEventArgs.cs
- XmlWhitespace.cs
- ProfileSection.cs
- UnitySerializationHolder.cs
- DataSourceProvider.cs
- SecurityKeyIdentifierClause.cs
- COAUTHINFO.cs
- ValidationRule.cs
- ListViewTableRow.cs
- NumberFormatInfo.cs
- EmbeddedMailObjectsCollection.cs
- ConnectionOrientedTransportChannelFactory.cs
- precedingsibling.cs
- PageFunction.cs
- EncryptedPackageFilter.cs
- ASCIIEncoding.cs
- UIElement.cs
- UrlAuthorizationModule.cs
- FtpRequestCacheValidator.cs
- addressfiltermode.cs
- ConfigXmlText.cs
- ResourceWriter.cs
- MergablePropertyAttribute.cs
- MethodSignatureGenerator.cs
- NumericPagerField.cs
- AVElementHelper.cs
- ScalarRestriction.cs
- KeyValueSerializer.cs
- TempFiles.cs
- RuntimeWrappedException.cs
- ColumnMapProcessor.cs
- UrlPath.cs
- DataGridPagingPage.cs
- UpdateExpressionVisitor.cs
- InvalidOperationException.cs
- FixedSOMElement.cs
- Point3DAnimationBase.cs
- PageThemeCodeDomTreeGenerator.cs
- EmptyEnumerator.cs
- TimeSpan.cs
- BindingList.cs
- FrugalMap.cs
- TriggerCollection.cs
- BaseHashHelper.cs
- Window.cs
- ChannelServices.cs
- SqlCaseSimplifier.cs
- FileSystemWatcher.cs
- RoleGroupCollection.cs
- DomNameTable.cs
- CodeSnippetExpression.cs
- DiagnosticsConfigurationHandler.cs
- ObjectDataSource.cs
- Quad.cs