Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Runtime.​Serialization.​StreamingContext

Assembly: System.Runtime

Describes the source and destination of a given serialized stream, and provides an additional caller-defined context.

Properties

public object
Context
Gets context specified as part of the additional context.
State
Gets the source or destination of the transmitted data.

Methods

public bool
Equals​(object obj)
obj An object to compare with the current instance.
Returns <see langword="true" /> if the specified object is an instance of <see cref="T:System.Runtime.Serialization.StreamingContext" /> and equals the value of the current instance; otherwise, <see langword="false" /> .
Determines whether two <see cref="T:System.Runtime.Serialization.StreamingContext" /> instances contain the same values.
public int
GetHashCode​()
Returns The <see cref="T:System.Runtime.Serialization.StreamingContextStates" /> value that contains the source or destination of the serialization for this <see cref="T:System.Runtime.Serialization.StreamingContext" /> .
Returns a hash code of this object.
public string
ToString​()
Inherited from ValueType
Returns The fully qualified type name.
Returns the fully qualified type name of this instance.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .