Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 [....] 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. // ==++== // // 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
- OutputCacheSettings.cs
- HWStack.cs
- ResourceProviderFactory.cs
- CommandCollectionEditor.cs
- SafeSecurityHandles.cs
- RuntimeHandles.cs
- DateTimeValueSerializer.cs
- SettingsContext.cs
- TableHeaderCell.cs
- XmlParserContext.cs
- DropShadowEffect.cs
- SignedXml.cs
- TextTrailingWordEllipsis.cs
- PathFigure.cs
- UnmanagedHandle.cs
- CodeLinePragma.cs
- SymmetricKeyWrap.cs
- WebPartActionVerb.cs
- TextEncodedRawTextWriter.cs
- SuppressMergeCheckAttribute.cs
- TemplateLookupAction.cs
- OledbConnectionStringbuilder.cs
- CustomErrorCollection.cs
- BitmapImage.cs
- DictionaryChange.cs
- SimpleLine.cs
- PrintPreviewControl.cs
- XsdBuildProvider.cs
- BevelBitmapEffect.cs
- TreeViewBindingsEditorForm.cs
- PrincipalPermission.cs
- SqlUtils.cs
- SystemIPGlobalProperties.cs
- ToolStripRenderer.cs
- CompositeActivityTypeDescriptor.cs
- TcpServerChannel.cs
- XmlAttributeHolder.cs
- ProcessProtocolHandler.cs
- CustomAttributeFormatException.cs
- EnumUnknown.cs
- HtmlTableRow.cs
- DragSelectionMessageFilter.cs
- SupportsPreviewControlAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- Boolean.cs
- HtmlControlPersistable.cs
- ListViewHitTestInfo.cs
- RNGCryptoServiceProvider.cs
- Geometry3D.cs
- StrokeNodeOperations2.cs
- BinaryParser.cs
- SqlDataSourceConfigureSortForm.cs
- UInt32Converter.cs
- VariableQuery.cs
- StringFormat.cs
- SQLByte.cs
- MenuCommand.cs
- ModuleElement.cs
- StringDictionary.cs
- StoreUtilities.cs
- UpdateCommand.cs
- XamlTypeWithExplicitNamespace.cs
- PointF.cs
- ElementMarkupObject.cs
- ByteStack.cs
- wgx_commands.cs
- Funcletizer.cs
- WebPartDisplayMode.cs
- OpenFileDialog.cs
- x509store.cs
- PixelShader.cs
- DataTableReader.cs
- TreeViewCancelEvent.cs
- SchemaRegistration.cs
- XmlBufferReader.cs
- Polyline.cs
- FastPropertyAccessor.cs
- RangeValidator.cs
- EnumUnknown.cs
- PenContexts.cs
- DiscoveryProxy.cs
- ApplicationManager.cs
- formatter.cs
- SchemaTableColumn.cs
- CriticalFinalizerObject.cs
- mediaeventargs.cs
- RawKeyboardInputReport.cs
- XmlComment.cs
- PixelFormats.cs
- AttributedMetaModel.cs
- Math.cs
- Color.cs
- PtsPage.cs
- SspiNegotiationTokenAuthenticatorState.cs
- TextEditor.cs
- SettingsPropertyCollection.cs
- SqlResolver.cs
- CodeGeneratorAttribute.cs
- RelationshipConverter.cs
- XmlSchemaAny.cs