Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GatewayDefinition.cs
- ServiceReference.cs
- SqlAggregateChecker.cs
- util.cs
- ConfigXmlText.cs
- __Filters.cs
- ModuleConfigurationInfo.cs
- SafeEventLogWriteHandle.cs
- SimpleTextLine.cs
- ToolStripMenuItemDesigner.cs
- Material.cs
- NotCondition.cs
- RegexMatch.cs
- NotImplementedException.cs
- TextRangeBase.cs
- DocumentEventArgs.cs
- Reference.cs
- DetailsViewUpdatedEventArgs.cs
- XmlObjectSerializerReadContextComplex.cs
- Root.cs
- webeventbuffer.cs
- Variable.cs
- FederatedMessageSecurityOverHttp.cs
- DataGridViewCellValueEventArgs.cs
- BaseParaClient.cs
- StylusPlugInCollection.cs
- OpacityConverter.cs
- CryptoHelper.cs
- TextBlock.cs
- ParallelTimeline.cs
- EventLogPermission.cs
- ObjectDataSourceEventArgs.cs
- Variable.cs
- XmlAtomicValue.cs
- Brush.cs
- OleDbStruct.cs
- LabelTarget.cs
- SessionStateContainer.cs
- PartitionedStream.cs
- ContextMenu.cs
- UnsafeMethods.cs
- TypeDescriptorFilterService.cs
- TimeStampChecker.cs
- safePerfProviderHandle.cs
- StatusBarPanel.cs
- UnitySerializationHolder.cs
- ErrorWebPart.cs
- LineVisual.cs
- LinkedList.cs
- InfoCardKeyedHashAlgorithm.cs
- CodeSnippetExpression.cs
- AssemblyResolver.cs
- EntryWrittenEventArgs.cs
- base64Transforms.cs
- DataSourceIDConverter.cs
- Queue.cs
- SoapTransportImporter.cs
- CheckBox.cs
- BaseDataList.cs
- TableLayoutPanelBehavior.cs
- GrabHandleGlyph.cs
- MemberRelationshipService.cs
- WindowsListViewScroll.cs
- Rotation3D.cs
- DataGridViewIntLinkedList.cs
- ContainerParaClient.cs
- SignatureToken.cs
- DataSourceControl.cs
- GenericPrincipal.cs
- SQLConvert.cs
- IResourceProvider.cs
- BindableTemplateBuilder.cs
- ReflectTypeDescriptionProvider.cs
- Converter.cs
- WindowInteropHelper.cs
- InlineCollection.cs
- ComboBoxRenderer.cs
- GenericIdentity.cs
- HtmlValidatorAdapter.cs
- WeakHashtable.cs
- DateTimeConstantAttribute.cs
- ToolBarPanel.cs
- ExpressionVisitor.cs
- NotificationContext.cs
- EnumConverter.cs
- LinkConverter.cs
- DataBindingsDialog.cs
- ICspAsymmetricAlgorithm.cs
- TextRunCacheImp.cs
- CompositionAdorner.cs
- NumberSubstitution.cs
- WebPartUserCapability.cs
- WizardStepBase.cs
- SystemIcmpV6Statistics.cs
- ColorConvertedBitmap.cs
- Attributes.cs
- ConfigurationLockCollection.cs
- DataGridViewComboBoxEditingControl.cs
- QueryReaderSettings.cs
- TargetControlTypeCache.cs