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
- LinqDataSource.cs
- HandlerMappingMemo.cs
- SelectionProviderWrapper.cs
- ToolStripItemEventArgs.cs
- ArraySortHelper.cs
- Single.cs
- Frame.cs
- DataGridRowClipboardEventArgs.cs
- StringUtil.cs
- ContainerSelectorActiveEvent.cs
- SqlCacheDependencySection.cs
- OleDbInfoMessageEvent.cs
- Int32.cs
- Themes.cs
- BrushMappingModeValidation.cs
- ExceptionUtil.cs
- ResourceReferenceExpression.cs
- RegexNode.cs
- TypeConverterValueSerializer.cs
- PropertyEmitter.cs
- Literal.cs
- QueryStringParameter.cs
- TextBox.cs
- ObjectNavigationPropertyMapping.cs
- XmlSiteMapProvider.cs
- HighlightVisual.cs
- Accessible.cs
- GridView.cs
- ServiceBehaviorElementCollection.cs
- EntityTemplateFactory.cs
- QualifiedCellIdBoolean.cs
- JournalEntry.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TargetFrameworkAttribute.cs
- HyperLinkField.cs
- Serializer.cs
- SmiMetaDataProperty.cs
- NamedPipeAppDomainProtocolHandler.cs
- PageCopyCount.cs
- DebuggerAttributes.cs
- AuthenticateEventArgs.cs
- TypeSource.cs
- DataBinding.cs
- TrustExchangeException.cs
- ResXResourceWriter.cs
- CodeDomLocalizationProvider.cs
- DbException.cs
- MappingItemCollection.cs
- HttpCacheParams.cs
- EventMappingSettingsCollection.cs
- UmAlQuraCalendar.cs
- RemoteWebConfigurationHostServer.cs
- DurableInstanceProvider.cs
- ValueExpressions.cs
- StorageComplexTypeMapping.cs
- TaskSchedulerException.cs
- PointValueSerializer.cs
- TickBar.cs
- BatchServiceHost.cs
- XmlAttributeCollection.cs
- SystemIPInterfaceProperties.cs
- SSmlParser.cs
- InputManager.cs
- XmlSortKeyAccumulator.cs
- AxParameterData.cs
- ScriptControlManager.cs
- User.cs
- UrlMappingCollection.cs
- ComboBox.cs
- InfoCardSymmetricCrypto.cs
- MarkupObject.cs
- entityreference_tresulttype.cs
- ProcessModule.cs
- TableRowCollection.cs
- Rotation3DKeyFrameCollection.cs
- Point4D.cs
- UnsignedPublishLicense.cs
- HttpProfileGroupBase.cs
- MessageDecoder.cs
- ServiceDiscoveryBehavior.cs
- FlowchartStart.xaml.cs
- XamlDesignerSerializationManager.cs
- BidOverLoads.cs
- CoordinationService.cs
- _DigestClient.cs
- ServiceBehaviorElement.cs
- SmtpFailedRecipientException.cs
- Attachment.cs
- AppSecurityManager.cs
- SafeSecurityHelper.cs
- LOSFormatter.cs
- WriteTimeStream.cs
- Blend.cs
- KnownBoxes.cs
- RemotingSurrogateSelector.cs
- RequestResponse.cs
- ExtendedPropertyCollection.cs
- CorrelationManager.cs
- X509SecurityTokenProvider.cs
- XsdCachingReader.cs