Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / HandleRef.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DisableDpiAwarenessAttribute.cs
- HtmlShim.cs
- CustomErrorsSection.cs
- InvalidPropValue.cs
- ResourceReferenceKeyNotFoundException.cs
- Encoding.cs
- NumberFunctions.cs
- TextParagraphProperties.cs
- Trace.cs
- DesignerCatalogPartChrome.cs
- ThrowOnMultipleAssignment.cs
- ChangesetResponse.cs
- Metafile.cs
- MethodAccessException.cs
- OdbcCommand.cs
- DbMetaDataFactory.cs
- IdentitySection.cs
- XmlElementList.cs
- TemplatePartAttribute.cs
- BitmapEffectDrawing.cs
- WmlLiteralTextAdapter.cs
- DataControlFieldCell.cs
- TableStyle.cs
- WithParamAction.cs
- ExpressionNormalizer.cs
- WsdlInspector.cs
- ResourcesChangeInfo.cs
- ConditionCollection.cs
- DiscoveryServiceExtension.cs
- RtfToken.cs
- QueryTreeBuilder.cs
- XMLSchema.cs
- ResourceWriter.cs
- XmlSchemaIdentityConstraint.cs
- SqlDataSourceView.cs
- XmlByteStreamReader.cs
- Vector3DIndependentAnimationStorage.cs
- WebCategoryAttribute.cs
- PathFigureCollection.cs
- XPathSingletonIterator.cs
- FileSystemWatcher.cs
- FormViewUpdateEventArgs.cs
- RawStylusSystemGestureInputReport.cs
- PrinterUnitConvert.cs
- Interlocked.cs
- ToolStripTextBox.cs
- BitVector32.cs
- AccessibleObject.cs
- AppLevelCompilationSectionCache.cs
- linebase.cs
- Point3DKeyFrameCollection.cs
- PrintingPermissionAttribute.cs
- UpnEndpointIdentityExtension.cs
- PassportAuthenticationEventArgs.cs
- GiveFeedbackEvent.cs
- ConfigXmlReader.cs
- XmlSchemaObject.cs
- SrgsItemList.cs
- ContractComponent.cs
- IndentedTextWriter.cs
- Config.cs
- Monitor.cs
- MetabaseServerConfig.cs
- JournalNavigationScope.cs
- ObjectSecurity.cs
- HttpSysSettings.cs
- CryptoProvider.cs
- ArrayTypeMismatchException.cs
- ActionMessageFilter.cs
- WebPartHelpVerb.cs
- XmlProcessingInstruction.cs
- Mouse.cs
- PermissionSetTriple.cs
- MetaChildrenColumn.cs
- Compiler.cs
- XmlSchemaComplexContentRestriction.cs
- ObjectListFieldCollection.cs
- GenericUriParser.cs
- XhtmlBasicValidatorAdapter.cs
- Light.cs
- NotFiniteNumberException.cs
- glyphs.cs
- DataGridViewRowEventArgs.cs
- SecureConversationSecurityTokenParameters.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- DataColumnMapping.cs
- graph.cs
- XmlSerializerFactory.cs
- CompiledIdentityConstraint.cs
- FilteredDataSetHelper.cs
- CoTaskMemUnicodeSafeHandle.cs
- FormsAuthentication.cs
- PlatformNotSupportedException.cs
- Switch.cs
- OrderedDictionary.cs
- ValueConversionAttribute.cs
- ReservationNotFoundException.cs
- RuleSetCollection.cs
- TextRangeAdaptor.cs
- RecommendedAsConfigurableAttribute.cs