Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / Serialization / StreamingContext.cs / 1 / 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 sync 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, } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Light.cs
- WpfXamlType.cs
- Tile.cs
- XmlSchemaGroupRef.cs
- ProviderCommandInfoUtils.cs
- DefaultPrintController.cs
- ProgressBarBrushConverter.cs
- WebPartConnectionsConfigureVerb.cs
- Filter.cs
- HostedNamedPipeTransportManager.cs
- XamlInt32CollectionSerializer.cs
- ObjectAnimationUsingKeyFrames.cs
- Validator.cs
- StrokeFIndices.cs
- TypeBuilder.cs
- FrameworkPropertyMetadata.cs
- XmlAttributes.cs
- StringCollectionMarkupSerializer.cs
- WebBrowser.cs
- GuidTagList.cs
- TimelineGroup.cs
- unsafenativemethodstextservices.cs
- HttpInputStream.cs
- EventDescriptor.cs
- SerializableReadOnlyDictionary.cs
- TextSerializer.cs
- WebHeaderCollection.cs
- LowerCaseStringConverter.cs
- MemberRelationshipService.cs
- ThreadBehavior.cs
- Screen.cs
- WorkflowDefinitionDispenser.cs
- XmlChoiceIdentifierAttribute.cs
- MediaContext.cs
- AuthenticationService.cs
- DataControlReference.cs
- SqlUtils.cs
- CodeVariableReferenceExpression.cs
- ServicePointManager.cs
- InstrumentationTracker.cs
- DataGridViewImageCell.cs
- InkCanvas.cs
- ResourceDefaultValueAttribute.cs
- SizeChangedInfo.cs
- ListItemConverter.cs
- FixedSOMSemanticBox.cs
- Bitmap.cs
- InvalidateEvent.cs
- XsltException.cs
- RootBuilder.cs
- TextComposition.cs
- Context.cs
- String.cs
- BindingList.cs
- DropShadowEffect.cs
- XsltQilFactory.cs
- ExpandSegment.cs
- EUCJPEncoding.cs
- UserPreferenceChangingEventArgs.cs
- BaseCAMarshaler.cs
- ResourcePool.cs
- PeerNameResolver.cs
- BamlVersionHeader.cs
- TableDesigner.cs
- UpdateException.cs
- URLAttribute.cs
- KeyboardNavigation.cs
- ConvertTextFrag.cs
- ObjectStateEntry.cs
- DigitShape.cs
- ValidatingPropertiesEventArgs.cs
- Button.cs
- PeerPresenceInfo.cs
- PublishLicense.cs
- ComplexType.cs
- WorkflowView.cs
- InstanceOwnerQueryResult.cs
- TypeConverterHelper.cs
- CapabilitiesSection.cs
- ChannelRequirements.cs
- TagMapInfo.cs
- DocumentsTrace.cs
- MemoryStream.cs
- FloatMinMaxAggregationOperator.cs
- BeginStoryboard.cs
- GlyphRunDrawing.cs
- StylusEventArgs.cs
- TextTabProperties.cs
- ApplicationContext.cs
- BitmapSource.cs
- CompiledIdentityConstraint.cs
- SchemaSetCompiler.cs
- TabControlAutomationPeer.cs
- EventHandlersStore.cs
- RectangleHotSpot.cs
- PictureBoxDesigner.cs
- GridViewCommandEventArgs.cs
- WindowsBrush.cs
- ECDiffieHellmanCng.cs
- HttpDebugHandler.cs