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
- UserPrincipalNameElement.cs
- ObjRef.cs
- COM2ColorConverter.cs
- IndicShape.cs
- WebPartConnectVerb.cs
- SoapFault.cs
- ActiveXSite.cs
- SessionSwitchEventArgs.cs
- TextDecorationLocationValidation.cs
- DependencyObjectPropertyDescriptor.cs
- LinkedResourceCollection.cs
- Empty.cs
- KnownTypes.cs
- SamlAuthorizationDecisionClaimResource.cs
- TripleDES.cs
- WindowsFormsHostPropertyMap.cs
- DataGridViewRowPrePaintEventArgs.cs
- Helpers.cs
- FormatterServices.cs
- SynchronizedInputProviderWrapper.cs
- _FixedSizeReader.cs
- FrameworkContentElement.cs
- Size.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- InvokeAction.cs
- SrgsText.cs
- ExceptionRoutedEventArgs.cs
- FileDialog.cs
- StandardMenuStripVerb.cs
- ModifierKeysConverter.cs
- EnumConverter.cs
- ConfigurationManagerHelper.cs
- AutoResetEvent.cs
- SqlInternalConnection.cs
- IODescriptionAttribute.cs
- TemplateContainer.cs
- ComponentResourceKeyConverter.cs
- TemplateBuilder.cs
- BamlBinaryReader.cs
- Geometry3D.cs
- BackEase.cs
- ToggleButtonAutomationPeer.cs
- SoapServerProtocol.cs
- SwitchCase.cs
- EntityCommand.cs
- DataGridSortCommandEventArgs.cs
- RolePrincipal.cs
- Line.cs
- Vertex.cs
- TextParagraph.cs
- XmlBindingWorker.cs
- OleDbStruct.cs
- UnsafeNativeMethods.cs
- TimersDescriptionAttribute.cs
- FunctionQuery.cs
- EdmItemError.cs
- RowSpanVector.cs
- EllipseGeometry.cs
- RegexStringValidatorAttribute.cs
- CodeBinaryOperatorExpression.cs
- PixelShader.cs
- ScrollChangedEventArgs.cs
- SoapSchemaMember.cs
- OdbcError.cs
- DirectoryNotFoundException.cs
- Canvas.cs
- Bold.cs
- ListItemsPage.cs
- BackoffTimeoutHelper.cs
- EventPropertyMap.cs
- RichTextBox.cs
- ObjectQuery_EntitySqlExtensions.cs
- TdsParserSafeHandles.cs
- TreeViewCancelEvent.cs
- ImageBrush.cs
- FeatureSupport.cs
- XmlElementList.cs
- JoinGraph.cs
- ValidationHelper.cs
- HttpListenerContext.cs
- RegistrationServices.cs
- CanonicalXml.cs
- XamlValidatingReader.cs
- DataGridAddNewRow.cs
- WebPartsSection.cs
- XPathArrayIterator.cs
- GrammarBuilderBase.cs
- LineServicesRun.cs
- ColorContext.cs
- ReadOnlyDataSource.cs
- HotSpotCollection.cs
- OraclePermission.cs
- DefinitionUpdate.cs
- filewebrequest.cs
- CellTreeNodeVisitors.cs
- ReversePositionQuery.cs
- ObjectMemberMapping.cs
- BitmapCodecInfo.cs
- RightsManagementSuppressedStream.cs
- Int16KeyFrameCollection.cs