summaryrefslogtreecommitdiff
path: root/src/mscorlib/ref/mscorlib.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/ref/mscorlib.cs')
-rw-r--r--src/mscorlib/ref/mscorlib.cs137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/mscorlib/ref/mscorlib.cs b/src/mscorlib/ref/mscorlib.cs
index 769c497373..965e727ee9 100644
--- a/src/mscorlib/ref/mscorlib.cs
+++ b/src/mscorlib/ref/mscorlib.cs
@@ -2457,6 +2457,13 @@ namespace System
public NotFiniteNumberException(string message) { }
public NotFiniteNumberException(string message, System.Exception innerException) { }
}
+ [AttributeUsage(AttributeTargets.Field, Inherited = false)]
+ public sealed class NonSerializedAttribute : Attribute
+ {
+ public NonSerializedAttribute()
+ {
+ }
+ }
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class NotImplementedException : System.SystemException
{
@@ -2739,6 +2746,13 @@ namespace System
[System.CLSCompliantAttribute(false)]
public static bool TryParse(string s, out sbyte result) { result = default(sbyte); return default(bool); }
}
+ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate, Inherited = false)]
+ public sealed class SerializableAttribute : Attribute
+ {
+ public SerializableAttribute()
+ {
+ }
+ }
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Single : System.IComparable, System.IComparable<float>, System.IConvertible, System.IEquatable<float>, System.IFormattable
@@ -11269,6 +11283,47 @@ namespace System.Runtime.Serialization
[System.Security.SecurityCriticalAttribute]
public static object GetUninitializedObject(System.Type type) { return default(object); }
}
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ public interface IDeserializationCallback
+ {
+ void OnDeserialization(object sender);
+ }
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ [System.CLSCompliant(false)]
+ public interface IFormatterConverter
+ {
+ object Convert(object value, Type type);
+ object Convert(object value, TypeCode typeCode);
+ bool ToBoolean(object value);
+ char ToChar(object value);
+ [CLSCompliant(false)]
+ sbyte ToSByte(object value);
+ byte ToByte(object value);
+ short ToInt16(object value);
+ [CLSCompliant(false)]
+ ushort ToUInt16(object value);
+ int ToInt32(object value);
+ [CLSCompliant(false)]
+ uint ToUInt32(object value);
+ long ToInt64(object value);
+ [CLSCompliant(false)]
+ ulong ToUInt64(object value);
+ float ToSingle(object value);
+ double ToDouble(object value);
+ Decimal ToDecimal(object value);
+ DateTime ToDateTime(object value);
+ String ToString(object value);
+ }
+ [System.Runtime.InteropServices.ComVisible(true)]
+ public interface IObjectReference
+ {
+ object GetRealObject(StreamingContext context);
+ }
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ public interface ISerializable
+ {
+ void GetObjectData(SerializationInfo info, StreamingContext context);
+ }
[System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false)]
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public sealed partial class OnDeserializedAttribute : System.Attribute
@@ -11293,6 +11348,21 @@ namespace System.Runtime.Serialization
{
public OnSerializingAttribute() { }
}
+ [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited = false)]
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ public sealed partial class OptionalFieldAttribute : System.Attribute
+ {
+ public OptionalFieldAttribute() { }
+ public int VersionAdded { get { return default(int); } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ public struct SerializationEntry
+ {
+ public string Name { get { throw null; } }
+ public Type ObjectType { get { throw null; } }
+ public object Value { get { throw null; } }
+ }
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class SerializationException : System.SystemException
{
@@ -11301,6 +11371,73 @@ namespace System.Runtime.Serialization
public SerializationException(string message, System.Exception innerException) { }
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ public sealed class SerializationInfo
+ {
+ [CLSCompliant(false)]
+ public SerializationInfo(Type type, IFormatterConverter converter) { }
+ public string AssemblyName { get { throw null; } set { } }
+ public string FullTypeName { get { throw null; } set { } }
+ public bool IsFullTypeNameSetExplicit { get { throw null; } }
+ public bool IsAssemblyNameSetExplicit { get { throw null; } }
+ public int MemberCount { get { throw null; } }
+ public Type ObjectType { get { throw null; } }
+ public void AddValue(string name, bool value) { }
+ public void AddValue(string name, byte value) { }
+ public void AddValue(string name, char value) { }
+ public void AddValue(string name, DateTime value) { }
+ public void AddValue(string name, decimal value) { }
+ public void AddValue(string name, double value) { }
+ public void AddValue(string name, short value) { }
+ public void AddValue(string name, int value) { }
+ public void AddValue(string name, long value) { }
+ public void AddValue(string name, object value) { }
+ public void AddValue(string name, object value, Type type) { }
+ [CLSCompliant(false)]
+ public void AddValue(string name, sbyte value) { }
+ public void AddValue(string name, float value) { }
+ [CLSCompliant(false)]
+ public void AddValue(string name, ushort value) { }
+ [CLSCompliant(false)]
+ public void AddValue(string name, uint value) { }
+ [CLSCompliant(false)]
+ public void AddValue(string name, ulong value) { }
+ public bool GetBoolean(string name) { throw null; }
+ public byte GetByte(string name) { throw null; }
+ public char GetChar(string name) { throw null; }
+ public DateTime GetDateTime(string name) { throw null; }
+ public decimal GetDecimal(string name) { throw null; }
+ public double GetDouble(string name) { throw null; }
+ public SerializationInfoEnumerator GetEnumerator() { throw null; }
+ public short GetInt16(string name) { throw null; }
+ public int GetInt32(string name) { throw null; }
+ public long GetInt64(string name) { throw null; }
+ [CLSCompliant(false)]
+ public sbyte GetSByte(string name) { throw null; }
+ public float GetSingle(string name) { throw null; }
+ public string GetString(string name) { throw null; }
+ [CLSCompliant(false)]
+ public ushort GetUInt16(string name) { throw null; }
+ [CLSCompliant(false)]
+ public uint GetUInt32(string name) { throw null; }
+ [CLSCompliant(false)]
+ public ulong GetUInt64(string name) { throw null; }
+ public object GetValue(string name, Type type) { throw null; }
+ public void SetType(Type type) { }
+ public void UpdateValue(string name, object value, Type type) { }
+ }
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
+ public sealed class SerializationInfoEnumerator : System.Collections.IEnumerator
+ {
+ private SerializationInfoEnumerator() { }
+ public SerializationEntry Current { get { throw null; } }
+ public string Name { get { throw null; } }
+ public Type ObjectType { get { throw null; } }
+ object System.Collections.IEnumerator.Current { get { throw null; } }
+ public object Value { get { throw null; } }
+ public bool MoveNext() { throw null; }
+ public void Reset() { throw null; }
+ }
+ [System.Runtime.InteropServices.ComVisibleAttribute(true)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct StreamingContext
{