Code:
/ FX-1434 / FX-1434 / 1.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
- WeakReadOnlyCollection.cs
- MediaCommands.cs
- StrokeNodeOperations.cs
- ListChangedEventArgs.cs
- PolyBezierSegment.cs
- HttpRawResponse.cs
- ExtractorMetadata.cs
- AdCreatedEventArgs.cs
- SqlConnectionString.cs
- XmlSchemaIdentityConstraint.cs
- StreamAsIStream.cs
- PropertyEmitterBase.cs
- ListDictionary.cs
- SqlBuffer.cs
- Expressions.cs
- CompModSwitches.cs
- CustomValidator.cs
- HasCopySemanticsAttribute.cs
- PageEventArgs.cs
- InputElement.cs
- Helpers.cs
- CheckBoxField.cs
- HtmlSelect.cs
- XmlBinaryReader.cs
- RegexWorker.cs
- SettingsPropertyIsReadOnlyException.cs
- DocumentReference.cs
- PointLight.cs
- RouteTable.cs
- ZipIOExtraFieldZip64Element.cs
- LinkedResource.cs
- CharStorage.cs
- Enumerable.cs
- EmptyReadOnlyDictionaryInternal.cs
- DropSource.cs
- MasterPageBuildProvider.cs
- TextContainerHelper.cs
- LoginAutoFormat.cs
- ContentPlaceHolder.cs
- DataGridViewColumnStateChangedEventArgs.cs
- StagingAreaInputItem.cs
- PersianCalendar.cs
- ResourcePool.cs
- FileDialogPermission.cs
- HotCommands.cs
- ReliableSession.cs
- ExtractedStateEntry.cs
- ClientOptions.cs
- UrlMappingsModule.cs
- HelpKeywordAttribute.cs
- SerializationUtility.cs
- CorrelationHandle.cs
- SettingsBindableAttribute.cs
- FontInfo.cs
- BitmapMetadataBlob.cs
- BuildProvidersCompiler.cs
- PathStreamGeometryContext.cs
- BindingCompleteEventArgs.cs
- LoginNameDesigner.cs
- BitmapVisualManager.cs
- FixedSchema.cs
- CipherData.cs
- Match.cs
- CompiledXpathExpr.cs
- StateItem.cs
- EntityProviderServices.cs
- WindowVisualStateTracker.cs
- SafeEventHandle.cs
- DrawingState.cs
- DateTimeParse.cs
- DetailsViewCommandEventArgs.cs
- AdapterDictionary.cs
- EDesignUtil.cs
- WebPartHeaderCloseVerb.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RuleSettings.cs
- SmtpMail.cs
- WebServicesSection.cs
- AsyncCodeActivityContext.cs
- FtpRequestCacheValidator.cs
- Opcode.cs
- DbParameterCollectionHelper.cs
- ButtonFlatAdapter.cs
- SafeLibraryHandle.cs
- PkcsMisc.cs
- CommandBindingCollection.cs
- FileDetails.cs
- SymmetricAlgorithm.cs
- AdjustableArrowCap.cs
- IisTraceListener.cs
- QuaternionValueSerializer.cs
- LoginCancelEventArgs.cs
- IsolationInterop.cs
- Stacktrace.cs
- ServicePointManager.cs
- TraceInternal.cs
- Object.cs
- FieldDescriptor.cs
- LinkedList.cs
- COSERVERINFO.cs