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
- Version.cs
- DateTime.cs
- MsmqTransportSecurityElement.cs
- WebPartCollection.cs
- ExplicitDiscriminatorMap.cs
- InkPresenter.cs
- FontDriver.cs
- ViewEventArgs.cs
- CompoundFileStorageReference.cs
- StateBag.cs
- HttpPostedFile.cs
- AddInAttribute.cs
- DataRelation.cs
- RelatedPropertyManager.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- MappingModelBuildProvider.cs
- DataMemberFieldConverter.cs
- ImmutableObjectAttribute.cs
- Endpoint.cs
- IndexerNameAttribute.cs
- BitmapEffect.cs
- TextElementCollectionHelper.cs
- ScrollItemProviderWrapper.cs
- OrderByBuilder.cs
- DispatchOperation.cs
- CombinedTcpChannel.cs
- EventItfInfo.cs
- FixedMaxHeap.cs
- HyperLinkColumn.cs
- RemoteWebConfigurationHostServer.cs
- Binding.cs
- ReflectionHelper.cs
- ConnectionConsumerAttribute.cs
- SiteOfOriginContainer.cs
- TextTreeUndo.cs
- ContextMarshalException.cs
- FontUnit.cs
- UnsafeNativeMethodsCLR.cs
- SourceFilter.cs
- DoubleIndependentAnimationStorage.cs
- HtmlElementCollection.cs
- Rect3DConverter.cs
- CompositionAdorner.cs
- SQLByte.cs
- DataGridCell.cs
- CodeMemberField.cs
- TableCellAutomationPeer.cs
- Timer.cs
- Column.cs
- DispatcherFrame.cs
- EntityDataSourceEntitySetNameItem.cs
- GridViewHeaderRowPresenter.cs
- SystemInformation.cs
- CompositeScriptReference.cs
- UrlUtility.cs
- Part.cs
- SequentialWorkflowRootDesigner.cs
- StylusEditingBehavior.cs
- SafeCryptoHandles.cs
- ConfigUtil.cs
- ProcessingInstructionAction.cs
- WebHttpBindingElement.cs
- ModelItemKeyValuePair.cs
- RewritingSimplifier.cs
- InvalidFilterCriteriaException.cs
- TextEditorDragDrop.cs
- safex509handles.cs
- PopupRoot.cs
- DesignerDataTableBase.cs
- ExtensionFile.cs
- TabletDeviceInfo.cs
- NativeMethods.cs
- ClientSideProviderDescription.cs
- AppDomainFactory.cs
- RSAProtectedConfigurationProvider.cs
- Marshal.cs
- Simplifier.cs
- Int16Converter.cs
- DataGridViewLinkCell.cs
- ConfigurationElementProperty.cs
- ZipIOCentralDirectoryBlock.cs
- TableLayoutStyle.cs
- SQLSingle.cs
- SerializationSectionGroup.cs
- CategoryGridEntry.cs
- UnsafeNativeMethods.cs
- SystemSounds.cs
- DataGridViewRowConverter.cs
- ArrangedElementCollection.cs
- JavaScriptObjectDeserializer.cs
- AuthenticationSection.cs
- AuthStoreRoleProvider.cs
- SessionState.cs
- UrlMapping.cs
- RemoteWebConfigurationHostServer.cs
- ArrangedElementCollection.cs
- ExpressionBindings.cs
- DesignerAdapterAttribute.cs
- InternalConfigRoot.cs
- TokenizerHelper.cs