Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UserControlCodeDomTreeGenerator.cs
- TypeValidationEventArgs.cs
- AccessKeyManager.cs
- SessionStateModule.cs
- XmlCodeExporter.cs
- AstTree.cs
- ResourceReferenceExpression.cs
- ConfigurationSection.cs
- AgileSafeNativeMemoryHandle.cs
- StorageConditionPropertyMapping.cs
- SmtpTransport.cs
- DataObject.cs
- ToolboxDataAttribute.cs
- InheritanceContextChangedEventManager.cs
- DelimitedListTraceListener.cs
- NestedContainer.cs
- HttpRequestCacheValidator.cs
- TransformPattern.cs
- Matrix3D.cs
- SecurityPermission.cs
- ModuleBuilderData.cs
- EditorBrowsableAttribute.cs
- RegisteredHiddenField.cs
- DropShadowEffect.cs
- AxWrapperGen.cs
- DesigntimeLicenseContext.cs
- InitializationEventAttribute.cs
- WebPartUtil.cs
- CodeGotoStatement.cs
- EventSinkHelperWriter.cs
- DataGridPageChangedEventArgs.cs
- AttributeEmitter.cs
- TextSpan.cs
- SiteMapPath.cs
- WorkflowNamespace.cs
- StrongNameUtility.cs
- HyperLinkStyle.cs
- SqlNodeAnnotation.cs
- OracleConnectionFactory.cs
- FontStretches.cs
- Block.cs
- SapiInterop.cs
- DataGridDesigner.cs
- NetworkAddressChange.cs
- ISAPIWorkerRequest.cs
- TouchesOverProperty.cs
- CreateBookmarkScope.cs
- RulePatternOps.cs
- TemplateAction.cs
- xmlsaver.cs
- BaseAppDomainProtocolHandler.cs
- CompensationParticipant.cs
- DataRecordInternal.cs
- XdrBuilder.cs
- NavigationFailedEventArgs.cs
- DbConnectionFactory.cs
- HtmlForm.cs
- DataGridItemCollection.cs
- WsatTransactionFormatter.cs
- LabelLiteral.cs
- GradientStop.cs
- FlagsAttribute.cs
- SchemaObjectWriter.cs
- DbParameterHelper.cs
- MonitoringDescriptionAttribute.cs
- OleDbReferenceCollection.cs
- InternalRelationshipCollection.cs
- TypeGeneratedEventArgs.cs
- SoapException.cs
- ServicePoint.cs
- PropertyCollection.cs
- IfAction.cs
- EditorPart.cs
- VSWCFServiceContractGenerator.cs
- GraphicsPath.cs
- DataGridViewTopRowAccessibleObject.cs
- ToolStripEditorManager.cs
- ScalarType.cs
- httpstaticobjectscollection.cs
- SelectedGridItemChangedEvent.cs
- HyperlinkAutomationPeer.cs
- ViewStateModeByIdAttribute.cs
- MappingSource.cs
- ObjectDataSourceStatusEventArgs.cs
- FontUnitConverter.cs
- PropertyGridCommands.cs
- PolyLineSegment.cs
- CompilerState.cs
- ClientProxyGenerator.cs
- BrowserCapabilitiesFactory.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Atom10FeedFormatter.cs
- ProvidePropertyAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- TrackPointCollection.cs
- QilPatternVisitor.cs
- OrderedDictionary.cs
- CodeTryCatchFinallyStatement.cs
- MapPathBasedVirtualPathProvider.cs
- DataBinding.cs