[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct StreamingContext
{
+ public StreamingContext(System.Runtime.Serialization.StreamingContextStates state) { }
+ public StreamingContext(System.Runtime.Serialization.StreamingContextStates state, object additional) { }
public override bool Equals(object obj) { return default(bool); }
public override int GetHashCode() { return default(int); }
+ public System.Runtime.Serialization.StreamingContextStates State { get { return default(System.Runtime.Serialization.StreamingContextStates); } }
+ public object Context { get { return default(object); } }
+ }
+ [Flags]
+ public enum StreamingContextStates
+ {
+ CrossProcess = 0x01,
+ CrossMachine = 0x02,
+ File = 0x04,
+ Persistence = 0x08,
+ Remoting = 0x10,
+ Other = 0x20,
+ Clone = 0x40,
+ CrossAppDomain = 0x80,
+ All = 0xFF,
}
}
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
- <AssemblyVersion>4.1.2.0</AssemblyVersion>
+ <AssemblyVersion>4.2.0.0</AssemblyVersion>
<OutputType>Library</OutputType>
<PackageTargetFramework>netstandard1.3</PackageTargetFramework>
<NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<AssemblyName>System.Runtime.Serialization.Primitives</AssemblyName>
- <AssemblyVersion>4.1.2.0</AssemblyVersion>
+ <AssemblyVersion>4.2.0.0</AssemblyVersion>
<RootNamespace>System.Runtime.Serialization.Primitives</RootNamespace>
<NoWarn>$(NoWarn);1634;1691;649</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
internal Object m_additionalContext;
internal StreamingContextStates m_state;
- internal StreamingContext(StreamingContextStates state)
+ public StreamingContext(StreamingContextStates state)
: this(state, null)
{
}
- internal StreamingContext(StreamingContextStates state, Object additional)
+ public StreamingContext(StreamingContextStates state, Object additional)
{
m_state = state;
m_additionalContext = additional;
}
- internal Object Context
+ public Object Context
{
get { return m_additionalContext; }
}
return (int)m_state;
}
- internal StreamingContextStates State
+ public StreamingContextStates State
{
get { return m_state; }
}
// Keep these in sync with the version in vm\runtimehandles.h
// **********************************************************
[Flags]
- internal enum StreamingContextStates
+ public enum StreamingContextStates
{
CrossProcess = 0x01,
CrossMachine = 0x02,