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
- Rotation3D.cs
- InvalidCommandTreeException.cs
- RightsManagementEncryptionTransform.cs
- Socket.cs
- TypeInfo.cs
- DbDeleteCommandTree.cs
- DependencyObjectPropertyDescriptor.cs
- SmiMetaDataProperty.cs
- DrawingVisual.cs
- LocatorManager.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlSchemaComplexContentRestriction.cs
- IpcChannel.cs
- Crypto.cs
- UInt64Converter.cs
- ObfuscateAssemblyAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- Separator.cs
- LogicalExpr.cs
- ColumnResizeAdorner.cs
- DelegatedStream.cs
- SeekStoryboard.cs
- ConfigurationValue.cs
- DeviceContexts.cs
- NonSerializedAttribute.cs
- ControlType.cs
- ClientSection.cs
- LastQueryOperator.cs
- XPathConvert.cs
- DataRelation.cs
- TabItemAutomationPeer.cs
- WebPartDisplayModeEventArgs.cs
- CapabilitiesState.cs
- CookieParameter.cs
- PersonalizablePropertyEntry.cs
- ProcessModelInfo.cs
- TextureBrush.cs
- RectAnimationUsingKeyFrames.cs
- PageThemeBuildProvider.cs
- Int64Converter.cs
- OleDbCommandBuilder.cs
- ContentDisposition.cs
- XMLSyntaxException.cs
- CodeFieldReferenceExpression.cs
- Component.cs
- ClientSession.cs
- Encoder.cs
- NullableDoubleMinMaxAggregationOperator.cs
- COMException.cs
- QuadraticBezierSegment.cs
- TTSEvent.cs
- TdsParserStateObject.cs
- SqlTriggerAttribute.cs
- SoapIgnoreAttribute.cs
- SqlStream.cs
- ElementHostAutomationPeer.cs
- AllMembershipCondition.cs
- ToolTipService.cs
- SecurityTokenAttachmentMode.cs
- InvariantComparer.cs
- XmlMapping.cs
- ConfigXmlComment.cs
- Ops.cs
- AsyncOperationManager.cs
- FileUpload.cs
- UrlPropertyAttribute.cs
- PingReply.cs
- DateTimeConverter.cs
- DefaultPrintController.cs
- LogicalTreeHelper.cs
- HtmlGenericControl.cs
- TCPListener.cs
- WebPartMinimizeVerb.cs
- MemberDescriptor.cs
- EpmSyndicationContentSerializer.cs
- LocalizabilityAttribute.cs
- DataGridViewComboBoxColumn.cs
- BeginSelectCardRequest.cs
- KeySplineConverter.cs
- DiagnosticsConfigurationHandler.cs
- XPathDescendantIterator.cs
- Boolean.cs
- HttpStaticObjectsCollectionBase.cs
- ToolStripGripRenderEventArgs.cs
- DesignerCommandSet.cs
- WhitespaceSignificantCollectionAttribute.cs
- XmlSchemaSimpleType.cs
- RubberbandSelector.cs
- OleDbCommandBuilder.cs
- ChannelServices.cs
- DSASignatureDeformatter.cs
- sqlser.cs
- HttpCapabilitiesSectionHandler.cs
- codemethodreferenceexpression.cs
- GridView.cs
- XmlNodeWriter.cs
- LayoutTableCell.cs
- Columns.cs
- ConfigurationManagerInternal.cs
- WorkflowRuntimeElement.cs