diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/Serialization/SerializationAttributes.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/Serialization/SerializationAttributes.cs | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/mscorlib/src/System/Runtime/Serialization/SerializationAttributes.cs b/src/mscorlib/src/System/Runtime/Serialization/SerializationAttributes.cs deleted file mode 100644 index 38abffa66e..0000000000 --- a/src/mscorlib/src/System/Runtime/Serialization/SerializationAttributes.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -/*============================================================ -** -** -** -** Purpose: Various Attributes for Serialization -** -** -============================================================*/ -namespace System.Runtime.Serialization -{ - using System; - using System.Diagnostics.Contracts; - using System.Reflection; - - [AttributeUsage(AttributeTargets.Field, Inherited=false)] - public sealed class OptionalFieldAttribute : Attribute - { - int versionAdded = 1; - public OptionalFieldAttribute() { } - - public int VersionAdded - { - get { - return this.versionAdded; - } - set { - if (value < 1) - throw new ArgumentException(Environment.GetResourceString("Serialization_OptionalFieldVersionValue")); - Contract.EndContractBlock(); - this.versionAdded = value; - } - } - } - - [AttributeUsage(AttributeTargets.Method, Inherited=false)] - public sealed class OnSerializingAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Method, Inherited=false)] - public sealed class OnSerializedAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Method, Inherited=false)] - public sealed class OnDeserializingAttribute : Attribute - { - } - - [AttributeUsage(AttributeTargets.Method, Inherited=false)] - public sealed class OnDeserializedAttribute : Attribute - { - } - -} |