Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Serialization / StreamingContext.cs / 1305376 / StreamingContext.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** ValueType: StreamingContext ** ** ** Purpose: A value type indicating the source or destination of our streaming. ** ** ===========================================================*/ namespace System.Runtime.Serialization { using System.Runtime.Remoting; using System; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct StreamingContext { internal Object m_additionalContext; internal StreamingContextStates m_state; public StreamingContext(StreamingContextStates state) : this (state, null) { } public StreamingContext(StreamingContextStates state, Object additional) { m_state = state; m_additionalContext = additional; } public Object Context { get { return m_additionalContext; } } public override bool Equals(Object obj) { if (!(obj is StreamingContext)) { return false; } if (((StreamingContext)obj).m_additionalContext == m_additionalContext && ((StreamingContext)obj).m_state == m_state) { return true; } return false; } public override int GetHashCode() { return (int)m_state; } public StreamingContextStates State { get { return m_state; } } } // ********************************************************* // Keep these in [....] with the version in vm\runtimehandles.h // ********************************************************* [Serializable] [Flags] [System.Runtime.InteropServices.ComVisible(true)] public enum StreamingContextStates { CrossProcess=0x01, CrossMachine=0x02, File =0x04, Persistence =0x08, Remoting =0x10, Other =0x20, Clone =0x40, CrossAppDomain =0x80, All =0xFF, } } // 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
- XmlIlVisitor.cs
- DataGridViewColumn.cs
- CriticalExceptions.cs
- EditableTreeList.cs
- SQLBinary.cs
- MULTI_QI.cs
- RawMouseInputReport.cs
- FilterException.cs
- RtType.cs
- ConfigXmlText.cs
- LayoutEditorPart.cs
- Gdiplus.cs
- D3DImage.cs
- TypeDescriptor.cs
- XsltFunctions.cs
- PageCodeDomTreeGenerator.cs
- ExceptionHelpers.cs
- StreamReader.cs
- DataGridBoolColumn.cs
- AdPostCacheSubstitution.cs
- PageAction.cs
- ComponentResourceManager.cs
- XsdCachingReader.cs
- TransactionCache.cs
- StoreAnnotationsMap.cs
- DebugHandleTracker.cs
- ThreadAttributes.cs
- Deserializer.cs
- ListCollectionView.cs
- LinqTreeNodeEvaluator.cs
- LayoutEditorPart.cs
- SafeCryptoHandles.cs
- mediaeventshelper.cs
- DictionaryCustomTypeDescriptor.cs
- RequiredArgumentAttribute.cs
- FontUnitConverter.cs
- HttpProtocolReflector.cs
- OuterGlowBitmapEffect.cs
- DependencyPropertyHelper.cs
- AttachedAnnotation.cs
- DataTemplateSelector.cs
- RelationshipManager.cs
- WebPartExportVerb.cs
- Select.cs
- PriorityBindingExpression.cs
- Matrix3DStack.cs
- ConnectionsZone.cs
- XmlHierarchicalDataSourceView.cs
- _SslState.cs
- odbcmetadatacollectionnames.cs
- ConnectionManagementElementCollection.cs
- PrinterResolution.cs
- WebPartManager.cs
- HttpSysSettings.cs
- MatrixAnimationUsingKeyFrames.cs
- ProtocolElement.cs
- HideDisabledControlAdapter.cs
- documentsequencetextview.cs
- NavigationProgressEventArgs.cs
- NameValueSectionHandler.cs
- DES.cs
- StringExpressionSet.cs
- DigitShape.cs
- DataGridViewTopRowAccessibleObject.cs
- HyperlinkAutomationPeer.cs
- MobileControlsSectionHelper.cs
- ListItemsPage.cs
- ByteStreamMessageEncoderFactory.cs
- ControlCollection.cs
- HtmlLink.cs
- oledbmetadatacollectionnames.cs
- PropertyTabChangedEvent.cs
- CustomAttributeFormatException.cs
- TextInfo.cs
- BoundsDrawingContextWalker.cs
- StreamInfo.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- SHA384.cs
- ContentFilePart.cs
- BaseTreeIterator.cs
- ViewStateModeByIdAttribute.cs
- RubberbandSelector.cs
- BooleanAnimationBase.cs
- DrawingGroupDrawingContext.cs
- DiscoveryClientDuplexChannel.cs
- WorkflowServiceHost.cs
- IdentityNotMappedException.cs
- OptimalBreakSession.cs
- TextBoxView.cs
- DrawingContextDrawingContextWalker.cs
- Solver.cs
- StreamMarshaler.cs
- ValidateNames.cs
- ObjectTokenCategory.cs
- EnglishPluralizationService.cs
- Inflater.cs
- ImageUrlEditor.cs
- CodeSnippetExpression.cs
- RtfControls.cs
- XmlSchemaValidator.cs