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
- ElementNotAvailableException.cs
- RadialGradientBrush.cs
- PermissionListSet.cs
- MessageDispatch.cs
- LineMetrics.cs
- TextBoxView.cs
- HtmlControlPersistable.cs
- COM2IDispatchConverter.cs
- UpdateTracker.cs
- WebServiceErrorEvent.cs
- ToolStripItemDesigner.cs
- DataGridComponentEditor.cs
- MessageSecurityProtocol.cs
- PinnedBufferMemoryStream.cs
- RouteValueExpressionBuilder.cs
- SiteOfOriginPart.cs
- FilterableAttribute.cs
- XmlSchemaValidator.cs
- DNS.cs
- SecurityTokenReferenceStyle.cs
- CFStream.cs
- SupportsEventValidationAttribute.cs
- AttachedAnnotation.cs
- ZipIOCentralDirectoryFileHeader.cs
- PassportAuthentication.cs
- BitmapSource.cs
- TextAdaptor.cs
- MachineKeyValidationConverter.cs
- StateDesigner.Helpers.cs
- HelpPage.cs
- RTLAwareMessageBox.cs
- BlurEffect.cs
- StorageBasedPackageProperties.cs
- BindingCollection.cs
- CodeLabeledStatement.cs
- HandlerWithFactory.cs
- DBSchemaTable.cs
- GenericTypeParameterBuilder.cs
- returneventsaver.cs
- TrackPoint.cs
- GroupQuery.cs
- DataSourceComponent.cs
- WebPartConnectionCollection.cs
- RotateTransform3D.cs
- ComponentManagerBroker.cs
- CancelRequestedQuery.cs
- ListItemCollection.cs
- RadioButtonPopupAdapter.cs
- HttpListenerRequest.cs
- CounterCreationData.cs
- StaticFileHandler.cs
- SingleAnimation.cs
- MemberMaps.cs
- BrushMappingModeValidation.cs
- SpeechSynthesizer.cs
- DataGridViewTextBoxCell.cs
- NumberFormatInfo.cs
- HyperLinkDesigner.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- wmiprovider.cs
- AuthenticationConfig.cs
- FileDialogCustomPlacesCollection.cs
- WindowsListViewItemStartMenu.cs
- FreezableCollection.cs
- TransformCryptoHandle.cs
- Type.cs
- ForwardPositionQuery.cs
- BinaryWriter.cs
- RelationalExpressions.cs
- FtpRequestCacheValidator.cs
- EntityDesignerUtils.cs
- HitTestWithGeometryDrawingContextWalker.cs
- cookie.cs
- RouteItem.cs
- AuthenticationModulesSection.cs
- QEncodedStream.cs
- OdbcError.cs
- SyndicationCategory.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- IndexerNameAttribute.cs
- PathNode.cs
- DbMetaDataCollectionNames.cs
- ModelItemDictionaryImpl.cs
- UserPreferenceChangingEventArgs.cs
- PerformanceCounterManager.cs
- LinkedList.cs
- RegexCompilationInfo.cs
- DataGridViewCellStyleBuilderDialog.cs
- ResourcesChangeInfo.cs
- NamespaceList.cs
- BulletChrome.cs
- Bezier.cs
- ScrollBarRenderer.cs
- MouseButtonEventArgs.cs
- MailSettingsSection.cs
- SchemaImporter.cs
- ColorBlend.cs
- StrongNameIdentityPermission.cs
- ConfigurationElement.cs
- Path.cs