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
- SecurityRuntime.cs
- AppliedDeviceFiltersDialog.cs
- UserInitiatedNavigationPermission.cs
- RtfControlWordInfo.cs
- SimpleApplicationHost.cs
- OleDbParameter.cs
- RequestStatusBarUpdateEventArgs.cs
- SqlCacheDependency.cs
- RegexCapture.cs
- ManipulationVelocities.cs
- HttpSessionStateBase.cs
- SymLanguageVendor.cs
- ObjectStateFormatter.cs
- DateTime.cs
- Int32Rect.cs
- ServiceNotStartedException.cs
- NameTable.cs
- CompiledQuery.cs
- CodeRemoveEventStatement.cs
- ParameterReplacerVisitor.cs
- DataGridViewButtonCell.cs
- WorkflowServiceHost.cs
- DispatcherExceptionFilterEventArgs.cs
- HtmlTableRow.cs
- StringWriter.cs
- HyperLinkStyle.cs
- RadioButtonRenderer.cs
- IIS7UserPrincipal.cs
- QEncodedStream.cs
- XmlException.cs
- CatalogPartChrome.cs
- FormView.cs
- StateDesigner.CommentLayoutGlyph.cs
- WindowsHyperlink.cs
- COM2PictureConverter.cs
- DeadLetterQueue.cs
- ContentFileHelper.cs
- GuidelineSet.cs
- NameSpaceExtractor.cs
- XmlEncodedRawTextWriter.cs
- RuleSettings.cs
- CancelEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- CommandValueSerializer.cs
- OdbcStatementHandle.cs
- OdbcDataAdapter.cs
- HotSpotCollection.cs
- SectionInformation.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- InstanceDescriptor.cs
- ProgressBarHighlightConverter.cs
- ContentPresenter.cs
- PartialTrustHelpers.cs
- PinProtectionHelper.cs
- Int64Animation.cs
- xmlglyphRunInfo.cs
- Receive.cs
- ListSourceHelper.cs
- EventProxy.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- BuildTopDownAttribute.cs
- Span.cs
- ConfigUtil.cs
- DispatcherHooks.cs
- ToolStripStatusLabel.cs
- RootNamespaceAttribute.cs
- VirtualPath.cs
- ReadOnlyCollection.cs
- oledbconnectionstring.cs
- ListViewItemEventArgs.cs
- PagePropertiesChangingEventArgs.cs
- DataAdapter.cs
- SystemSounds.cs
- InternalDispatchObject.cs
- ImmComposition.cs
- VersionPair.cs
- SynchronizedPool.cs
- FileFormatException.cs
- WindowHideOrCloseTracker.cs
- QilTypeChecker.cs
- EmbeddedMailObjectCollectionEditor.cs
- DrawingServices.cs
- ProfileServiceManager.cs
- Errors.cs
- SafeFileHandle.cs
- ToolStripDropDownButton.cs
- NameValuePair.cs
- SignatureResourcePool.cs
- BoundColumn.cs
- BordersPage.cs
- AbsoluteQuery.cs
- NavigationPropertyEmitter.cs
- TreeNodeCollection.cs
- CustomExpressionEventArgs.cs
- FindSimilarActivitiesVerb.cs
- XmlSchemaAnnotation.cs
- InternalConfigRoot.cs
- BitmapEffectDrawingContextWalker.cs
- WebPartConnectionsCloseVerb.cs
- QueryOperationResponseOfT.cs