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
- FileLevelControlBuilderAttribute.cs
- CodeGotoStatement.cs
- ProfileSettings.cs
- LingerOption.cs
- FieldCollectionEditor.cs
- BitStack.cs
- RemoteCryptoRsaServiceProvider.cs
- OutputCacheSettingsSection.cs
- RuntimeArgumentHandle.cs
- ParsedAttributeCollection.cs
- LZCodec.cs
- ProcessHostConfigUtils.cs
- Missing.cs
- PerfCounterSection.cs
- OperationCanceledException.cs
- _NTAuthentication.cs
- AsyncContentLoadedEventArgs.cs
- PersonalizationState.cs
- MetadataCacheItem.cs
- DispatchChannelSink.cs
- DurableInstanceManager.cs
- ZipIOLocalFileBlock.cs
- base64Transforms.cs
- XmlCharType.cs
- DbExpressionBuilder.cs
- DebugTracing.cs
- DbReferenceCollection.cs
- figurelength.cs
- BamlBinaryReader.cs
- BookmarkOptionsHelper.cs
- Memoizer.cs
- CqlParserHelpers.cs
- Control.cs
- CallInfo.cs
- ReadWriteObjectLock.cs
- GroupAggregateExpr.cs
- DecoderReplacementFallback.cs
- ProfileSettingsCollection.cs
- DataTemplateSelector.cs
- ConstNode.cs
- SocketPermission.cs
- CodePageUtils.cs
- TextCompositionEventArgs.cs
- TextDecorationCollectionConverter.cs
- SecurityMode.cs
- PaginationProgressEventArgs.cs
- DbProviderFactories.cs
- DBBindings.cs
- SafeThreadHandle.cs
- EntityDataSourceEntitySetNameItem.cs
- DateTimeUtil.cs
- DatasetMethodGenerator.cs
- login.cs
- VisualTreeHelper.cs
- TreeNodeConverter.cs
- objectresult_tresulttype.cs
- XamlInt32CollectionSerializer.cs
- ExclusiveNamedPipeTransportManager.cs
- RC2CryptoServiceProvider.cs
- ReflectEventDescriptor.cs
- ImageListDesigner.cs
- CompilerCollection.cs
- BindingManagerDataErrorEventArgs.cs
- ComboBox.cs
- CodeConditionStatement.cs
- OdbcEnvironmentHandle.cs
- _AutoWebProxyScriptEngine.cs
- DataGridViewRowPrePaintEventArgs.cs
- AxDesigner.cs
- XamlFilter.cs
- SqlInfoMessageEvent.cs
- DelegateBodyWriter.cs
- RawUIStateInputReport.cs
- URLIdentityPermission.cs
- recordstate.cs
- ProxyHwnd.cs
- DesignTimeTemplateParser.cs
- CommandLineParser.cs
- SqlRewriteScalarSubqueries.cs
- BinarySerializer.cs
- NewArrayExpression.cs
- CharUnicodeInfo.cs
- HyperLinkStyle.cs
- CssStyleCollection.cs
- ChtmlTextWriter.cs
- ModifierKeysValueSerializer.cs
- AssociationType.cs
- RangeValueProviderWrapper.cs
- FixedStringLookup.cs
- CodeGroup.cs
- Parsers.cs
- CacheRequest.cs
- XPathException.cs
- _UriSyntax.cs
- RoleManagerSection.cs
- StickyNoteContentControl.cs
- TextBox.cs
- PackageStore.cs
- ListControlStringCollectionEditor.cs
- CharConverter.cs