Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Paragraph.cs
- AuthenticationException.cs
- OleServicesContext.cs
- IdentityHolder.cs
- PictureBox.cs
- BufferBuilder.cs
- CompositeDuplexBindingElement.cs
- nulltextnavigator.cs
- Pen.cs
- GroupBoxAutomationPeer.cs
- FileStream.cs
- ResourceWriter.cs
- OperationContextScope.cs
- XmlNotation.cs
- SoapSchemaMember.cs
- documentsequencetextview.cs
- FlowLayout.cs
- BooleanStorage.cs
- HttpRequest.cs
- UIElement3D.cs
- OracleColumn.cs
- LinkArea.cs
- TextParagraphCache.cs
- FtpWebRequest.cs
- IntegerValidator.cs
- DependsOnAttribute.cs
- SystemIPv4InterfaceProperties.cs
- OrderedHashRepartitionStream.cs
- ServiceNameCollection.cs
- DigitShape.cs
- BStrWrapper.cs
- GroupedContextMenuStrip.cs
- _KerberosClient.cs
- SchemaCollectionPreprocessor.cs
- WebPartTracker.cs
- ListView.cs
- RuntimeEnvironment.cs
- EntityExpressionVisitor.cs
- ImpersonationContext.cs
- IDReferencePropertyAttribute.cs
- InternalBufferOverflowException.cs
- UrlAuthorizationModule.cs
- OracleRowUpdatingEventArgs.cs
- BlockExpression.cs
- HeaderedItemsControl.cs
- EntityKeyElement.cs
- InvalidAsynchronousStateException.cs
- Atom10FormatterFactory.cs
- GradientStop.cs
- Track.cs
- DeviceSpecificChoice.cs
- InputReferenceExpression.cs
- UnsafeNativeMethods.cs
- DataGridViewLayoutData.cs
- AutomationPattern.cs
- TypeForwardedToAttribute.cs
- WorkflowOwnershipException.cs
- DataGridTemplateColumn.cs
- AliasExpr.cs
- PositiveTimeSpanValidatorAttribute.cs
- RolePrincipal.cs
- RowToFieldTransformer.cs
- InvocationExpression.cs
- LogWriteRestartAreaState.cs
- ObjectDataSourceView.cs
- StreamWriter.cs
- FileDialog_Vista_Interop.cs
- OracleNumber.cs
- NamedPipeChannelFactory.cs
- OleDbCommandBuilder.cs
- PolyBezierSegment.cs
- PromptEventArgs.cs
- UnsafeNativeMethods.cs
- DesignerCategoryAttribute.cs
- XmlUrlResolver.cs
- ServerIdentity.cs
- WebPartTransformerAttribute.cs
- ProxyFragment.cs
- ColumnResizeUndoUnit.cs
- ConvertTextFrag.cs
- CompilerError.cs
- ListViewHitTestInfo.cs
- TableLayoutPanelBehavior.cs
- HtmlFormAdapter.cs
- Ray3DHitTestResult.cs
- ResourceReferenceExpressionConverter.cs
- Int32RectValueSerializer.cs
- Wildcard.cs
- AccessViolationException.cs
- DataSourceControlBuilder.cs
- NetStream.cs
- WpfKnownType.cs
- ProcessManager.cs
- Component.cs
- ThreadExceptionDialog.cs
- ComboBoxRenderer.cs
- BodyGlyph.cs
- ConfigurationPermission.cs
- WebPartAddingEventArgs.cs
- SchemaSetCompiler.cs