Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DeferrableContent.cs
- UnsafeNativeMethodsMilCoreApi.cs
- BinaryMessageEncoder.cs
- HostSecurityManager.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- Win32.cs
- IpcManager.cs
- xmlfixedPageInfo.cs
- BufferedGenericXmlSecurityToken.cs
- WeakReferenceKey.cs
- SqlUdtInfo.cs
- sqlinternaltransaction.cs
- ToolBarTray.cs
- DataRowChangeEvent.cs
- TextEditorMouse.cs
- ComplexPropertyEntry.cs
- InvalidCommandTreeException.cs
- ToolStripStatusLabel.cs
- XPathMultyIterator.cs
- UrlParameterWriter.cs
- SQLInt32Storage.cs
- SerializationFieldInfo.cs
- CornerRadius.cs
- MaterializeFromAtom.cs
- SignatureHelper.cs
- XmlSchema.cs
- TransportOutputChannel.cs
- ArgumentException.cs
- ListParaClient.cs
- EdmProviderManifest.cs
- UnmanagedBitmapWrapper.cs
- DataBindingExpressionBuilder.cs
- UnauthorizedAccessException.cs
- PlatformCulture.cs
- ActivityBindForm.Designer.cs
- InheritablePropertyChangeInfo.cs
- ValueQuery.cs
- XmlIterators.cs
- CustomGrammar.cs
- LambdaCompiler.ControlFlow.cs
- ComplexTypeEmitter.cs
- DbMetaDataColumnNames.cs
- RoleService.cs
- _UriSyntax.cs
- TreeNodeStyle.cs
- ResourcesBuildProvider.cs
- SpeechUI.cs
- JulianCalendar.cs
- ToolStripSeparator.cs
- UnicastIPAddressInformationCollection.cs
- SHA1.cs
- Rect.cs
- DesignerActionKeyboardBehavior.cs
- TraceContextEventArgs.cs
- HttpRequestMessageProperty.cs
- SoapTypeAttribute.cs
- XmlSchemaComplexContentExtension.cs
- ProfessionalColorTable.cs
- MenuItem.cs
- XmlRawWriter.cs
- DataBoundControlHelper.cs
- ControllableStoryboardAction.cs
- FileUtil.cs
- DebugView.cs
- XmlSchemaSequence.cs
- Type.cs
- DataSvcMapFileSerializer.cs
- SystemIcons.cs
- DesignerPerfEventProvider.cs
- ObjectViewFactory.cs
- AsyncMethodInvoker.cs
- QilStrConcat.cs
- ImageSource.cs
- MouseBinding.cs
- PriorityQueue.cs
- NonParentingControl.cs
- EntityContainerAssociationSetEnd.cs
- ReadWriteObjectLock.cs
- SortQuery.cs
- HTTPNotFoundHandler.cs
- MasterPageBuildProvider.cs
- Int64AnimationUsingKeyFrames.cs
- AppSettingsReader.cs
- AuthorizationRuleCollection.cs
- RedistVersionInfo.cs
- SqlAggregateChecker.cs
- BitmapInitialize.cs
- CodeChecksumPragma.cs
- ReferentialConstraint.cs
- CodeCastExpression.cs
- EmptyReadOnlyDictionaryInternal.cs
- Condition.cs
- ToolStripDesignerAvailabilityAttribute.cs
- StrokeDescriptor.cs
- DataSourceControlBuilder.cs
- MeasurementDCInfo.cs
- SqlClientPermission.cs
- odbcmetadatacolumnnames.cs
- DragCompletedEventArgs.cs
- XmlWriterSettings.cs