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
- SqlVersion.cs
- DefaultTypeArgumentAttribute.cs
- XhtmlBasicCommandAdapter.cs
- List.cs
- DecimalAnimationUsingKeyFrames.cs
- BamlResourceDeserializer.cs
- WindowsAuthenticationModule.cs
- EntryWrittenEventArgs.cs
- PrincipalPermission.cs
- Logging.cs
- TransformerInfoCollection.cs
- X509CertificateChain.cs
- TextDecorationCollection.cs
- ProviderIncompatibleException.cs
- CallbackValidatorAttribute.cs
- LocalizableResourceBuilder.cs
- FormatVersion.cs
- UpDownBase.cs
- UMPAttributes.cs
- ReadOnlyDataSource.cs
- StylusTip.cs
- x509utils.cs
- TrackingProfileCache.cs
- HMACSHA256.cs
- StreamWithDictionary.cs
- Variant.cs
- RuleRefElement.cs
- Point3DAnimationBase.cs
- XmlDataCollection.cs
- RootDesignerSerializerAttribute.cs
- CompilerGlobalScopeAttribute.cs
- DetailsViewRowCollection.cs
- XComponentModel.cs
- HandlerWithFactory.cs
- TrackingProvider.cs
- WindowsRebar.cs
- BuildResult.cs
- DynamicMethod.cs
- CriticalHandle.cs
- TagPrefixInfo.cs
- VarRefManager.cs
- CaseInsensitiveHashCodeProvider.cs
- LinearKeyFrames.cs
- FutureFactory.cs
- ScrollData.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BypassElementCollection.cs
- DispatchWrapper.cs
- Event.cs
- Equal.cs
- Geometry.cs
- CacheMemory.cs
- Component.cs
- Function.cs
- HttpConfigurationSystem.cs
- PopupRoot.cs
- XmlSortKeyAccumulator.cs
- MetabaseSettings.cs
- ZipArchive.cs
- CheckBoxDesigner.cs
- ControlAdapter.cs
- TimeSpan.cs
- SqlNotificationEventArgs.cs
- SchemaImporterExtension.cs
- ConfigurationLockCollection.cs
- ItemsPresenter.cs
- ControlBuilder.cs
- ExtendedTransformFactory.cs
- Pen.cs
- PeerNearMe.cs
- FixedSOMContainer.cs
- SqlDependency.cs
- ElementMarkupObject.cs
- HTMLTagNameToTypeMapper.cs
- _ContextAwareResult.cs
- RegexInterpreter.cs
- WsdlServiceChannelBuilder.cs
- SystemWebCachingSectionGroup.cs
- ConstantSlot.cs
- Dispatcher.cs
- ContentOperations.cs
- UpdateDelegates.Generated.cs
- Thread.cs
- ReadContentAsBinaryHelper.cs
- GlyphInfoList.cs
- _LazyAsyncResult.cs
- CatalogPart.cs
- ConnectionModeReader.cs
- WebPageTraceListener.cs
- COM2ColorConverter.cs
- ComponentEvent.cs
- ViewManagerAttribute.cs
- ConstraintCollection.cs
- AssemblyCache.cs
- BooleanConverter.cs
- DataExpression.cs
- DeploymentSectionCache.cs
- PrePrepareMethodAttribute.cs
- DocumentPageHost.cs
- ECDiffieHellmanCng.cs