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
- ActivityExecutor.cs
- TabletDevice.cs
- Latin1Encoding.cs
- BaseValidator.cs
- X509ChainElement.cs
- ContextBase.cs
- LightweightCodeGenerator.cs
- NoneExcludedImageIndexConverter.cs
- AutomationElement.cs
- Bold.cs
- JulianCalendar.cs
- IndexedGlyphRun.cs
- BinaryObjectWriter.cs
- DataKeyCollection.cs
- OpCellTreeNode.cs
- EditingContext.cs
- DetailsViewRow.cs
- _Rfc2616CacheValidators.cs
- PenCursorManager.cs
- WindowsRegion.cs
- MachineKeySection.cs
- TableLayoutPanel.cs
- PageWrapper.cs
- GestureRecognitionResult.cs
- BitmapCacheBrush.cs
- FeatureAttribute.cs
- ThemeInfoAttribute.cs
- EntityTypeEmitter.cs
- EventDescriptorCollection.cs
- DataTableNewRowEvent.cs
- DocumentOrderQuery.cs
- Directory.cs
- CompilerState.cs
- Renderer.cs
- ObjectPersistData.cs
- SerializationException.cs
- TdsParserStaticMethods.cs
- MarkupProperty.cs
- SafeWaitHandle.cs
- KeyGestureValueSerializer.cs
- ScrollItemProviderWrapper.cs
- RectangleHotSpot.cs
- WebPartManager.cs
- InputScopeConverter.cs
- SecurityHelper.cs
- Identity.cs
- MethodBody.cs
- SecurityVersion.cs
- TextEndOfSegment.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- OAVariantLib.cs
- DashStyles.cs
- FormViewModeEventArgs.cs
- ActivityCodeDomSerializer.cs
- Vector3DKeyFrameCollection.cs
- SessionIDManager.cs
- OpenTypeLayoutCache.cs
- XpsResourcePolicy.cs
- TypeSystem.cs
- SpeakProgressEventArgs.cs
- AnnotationService.cs
- FormsAuthenticationCredentials.cs
- BitmapSizeOptions.cs
- TextElementEditingBehaviorAttribute.cs
- ContainerVisual.cs
- DataSourceCache.cs
- MessageEncoderFactory.cs
- KnownTypeDataContractResolver.cs
- LineMetrics.cs
- QueryServiceConfigHandle.cs
- ConfigurationSchemaErrors.cs
- WeakEventManager.cs
- RectAnimation.cs
- SslStreamSecurityUpgradeProvider.cs
- dsa.cs
- CodeEventReferenceExpression.cs
- PrivilegeNotHeldException.cs
- CompileXomlTask.cs
- WorkflowFileItem.cs
- StyleCollectionEditor.cs
- Menu.cs
- PackageStore.cs
- ChildTable.cs
- XmlCharCheckingWriter.cs
- FontFamilyConverter.cs
- CroppedBitmap.cs
- PasswordRecoveryDesigner.cs
- DataSourceDesigner.cs
- CredentialSelector.cs
- IncomingWebResponseContext.cs
- SchemaMapping.cs
- SortDescription.cs
- RenamedEventArgs.cs
- Filter.cs
- Point.cs
- SqlCharStream.cs
- HostSecurityManager.cs
- DynamicExpression.cs
- RegexRunnerFactory.cs
- ByteKeyFrameCollection.cs