Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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, } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlGenericControl.cs
- DiffuseMaterial.cs
- KeyConverter.cs
- RelationalExpressions.cs
- TextInfo.cs
- QilXmlWriter.cs
- COM2ExtendedTypeConverter.cs
- TypedTableBase.cs
- WorkflowDurableInstance.cs
- FamilyTypeface.cs
- EntryWrittenEventArgs.cs
- ConfigurationManagerInternalFactory.cs
- ScrollEventArgs.cs
- MethodImplAttribute.cs
- StringComparer.cs
- SqlDataRecord.cs
- ConfigurationLockCollection.cs
- BitmapEffect.cs
- Permission.cs
- DesignerOptionService.cs
- Path.cs
- HttpRequestTraceRecord.cs
- ObjectViewListener.cs
- ScrollBar.cs
- WebPartExportVerb.cs
- OutgoingWebRequestContext.cs
- DataError.cs
- EdgeProfileValidation.cs
- PathFigureCollection.cs
- LayoutDump.cs
- DesignerCalendarAdapter.cs
- Timeline.cs
- WpfSharedXamlSchemaContext.cs
- TraceContextEventArgs.cs
- Maps.cs
- UIElement3D.cs
- ButtonField.cs
- DataIdProcessor.cs
- PageThemeCodeDomTreeGenerator.cs
- ImpersonateTokenRef.cs
- DateTimeConverter.cs
- ReachDocumentPageSerializer.cs
- SecureEnvironment.cs
- PriorityRange.cs
- InvocationExpression.cs
- LogLogRecordEnumerator.cs
- RadioButtonDesigner.cs
- CacheOutputQuery.cs
- WorkflowOperationFault.cs
- Pts.cs
- RadioButtonRenderer.cs
- AnchoredBlock.cs
- ObjectReaderCompiler.cs
- IsolatedStorageFilePermission.cs
- TableDetailsCollection.cs
- PerformanceCounterManager.cs
- ButtonFieldBase.cs
- _OverlappedAsyncResult.cs
- KeyNotFoundException.cs
- Comparer.cs
- ReturnEventArgs.cs
- DesignerWidgets.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Calendar.cs
- StoreContentChangedEventArgs.cs
- mda.cs
- TextEditorMouse.cs
- DiscoveryClientChannelFactory.cs
- PolicyUnit.cs
- HtmlInputCheckBox.cs
- TypeConverter.cs
- SmtpFailedRecipientException.cs
- BindingGroup.cs
- WebControl.cs
- GenerateScriptTypeAttribute.cs
- Tuple.cs
- FrameworkReadOnlyPropertyMetadata.cs
- UidManager.cs
- activationcontext.cs
- SessionStateUtil.cs
- DBConnection.cs
- AsyncPostBackErrorEventArgs.cs
- RotateTransform.cs
- XmlElementAttributes.cs
- ListViewGroupCollectionEditor.cs
- HtmlInputHidden.cs
- FontCollection.cs
- RecognizedPhrase.cs
- IDictionary.cs
- ReliabilityContractAttribute.cs
- InvokeDelegate.cs
- BinarySecretKeyIdentifierClause.cs
- TextBox.cs
- QilTargetType.cs
- KeysConverter.cs
- SerializableReadOnlyDictionary.cs
- NativeMethods.cs
- IndexOutOfRangeException.cs
- ButtonBaseAdapter.cs
- SqlPersonalizationProvider.cs