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
- DBSchemaRow.cs
- CTreeGenerator.cs
- UnSafeCharBuffer.cs
- StringUtil.cs
- Privilege.cs
- QueryParameter.cs
- AnnotationComponentManager.cs
- UserNamePasswordValidationMode.cs
- ColorPalette.cs
- InlinedAggregationOperatorEnumerator.cs
- TypeGeneratedEventArgs.cs
- ThreadInterruptedException.cs
- EventSourceCreationData.cs
- TagPrefixAttribute.cs
- IntSumAggregationOperator.cs
- ByteConverter.cs
- ApplicationId.cs
- DirectionalAction.cs
- MaskInputRejectedEventArgs.cs
- PtsHost.cs
- ContractMapping.cs
- InvokeBinder.cs
- GridViewCancelEditEventArgs.cs
- BackgroundWorker.cs
- BevelBitmapEffect.cs
- ReaderOutput.cs
- Compiler.cs
- XmlNodeComparer.cs
- Compiler.cs
- RequestCacheEntry.cs
- CachedPathData.cs
- BezierSegment.cs
- XmlSchemaElement.cs
- RegisterInfo.cs
- NonVisualControlAttribute.cs
- ProfilePropertySettings.cs
- LabelAutomationPeer.cs
- ThemeableAttribute.cs
- BookmarkCallbackWrapper.cs
- Collection.cs
- NamedPipeTransportBindingElement.cs
- Polyline.cs
- TextRangeAdaptor.cs
- UserUseLicenseDictionaryLoader.cs
- CodeArrayCreateExpression.cs
- PrintDocument.cs
- SplitterPanel.cs
- XamlInt32CollectionSerializer.cs
- InvalidComObjectException.cs
- ConnectionProviderAttribute.cs
- RectangleF.cs
- LineVisual.cs
- Event.cs
- InitializerFacet.cs
- LayoutDump.cs
- ControlCachePolicy.cs
- TextSelectionProcessor.cs
- ClientType.cs
- MenuItemAutomationPeer.cs
- SqlCacheDependency.cs
- UIElementParagraph.cs
- WebPartExportVerb.cs
- SystemIPv4InterfaceProperties.cs
- EntityFunctions.cs
- Content.cs
- XmlIgnoreAttribute.cs
- ConfigurationUtility.cs
- HMAC.cs
- BaseDataBoundControl.cs
- CodeMethodReturnStatement.cs
- LazyTextWriterCreator.cs
- UrlAuthorizationModule.cs
- UpDownBase.cs
- WebBrowserHelper.cs
- ClockController.cs
- MLangCodePageEncoding.cs
- SqlConnectionFactory.cs
- EdmComplexPropertyAttribute.cs
- TypographyProperties.cs
- GenericUriParser.cs
- XNodeValidator.cs
- TemplateApplicationHelper.cs
- TextRangeAdaptor.cs
- DSGeneratorProblem.cs
- TreeNodeSelectionProcessor.cs
- LowerCaseStringConverter.cs
- ProbeMatchesMessageCD1.cs
- SecurityTokenResolver.cs
- TileBrush.cs
- DataGridComboBoxColumn.cs
- securitycriticaldataformultiplegetandset.cs
- WebDescriptionAttribute.cs
- XmlSchema.cs
- SynchronizationContext.cs
- BitmapSource.cs
- SslStreamSecurityBindingElement.cs
- SmiEventSink_DeferedProcessing.cs
- IdentityNotMappedException.cs
- ZoomPercentageConverter.cs
- SaveFileDialogDesigner.cs