diff options
Diffstat (limited to 'src/mscorlib/src/System/NonSerializedAttribute.cs')
-rw-r--r-- | src/mscorlib/src/System/NonSerializedAttribute.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mscorlib/src/System/NonSerializedAttribute.cs b/src/mscorlib/src/System/NonSerializedAttribute.cs index 39f186212a..be05e113c6 100644 --- a/src/mscorlib/src/System/NonSerializedAttribute.cs +++ b/src/mscorlib/src/System/NonSerializedAttribute.cs @@ -10,23 +10,24 @@ ** ** ============================================================*/ -namespace System -{ - using System.Reflection; - [AttributeUsage(AttributeTargets.Field, Inherited=false)] - public sealed class NonSerializedAttribute : Attribute +using System.Reflection; + +namespace System +{ + [AttributeUsage(AttributeTargets.Field, Inherited = false)] + public sealed class NonSerializedAttribute : Attribute { - internal static Attribute GetCustomAttribute(RuntimeFieldInfo field) - { + internal static Attribute GetCustomAttribute(RuntimeFieldInfo field) + { if ((field.Attributes & FieldAttributes.NotSerialized) == 0) return null; return new NonSerializedAttribute(); } - internal static bool IsDefined(RuntimeFieldInfo field) - { + internal static bool IsDefined(RuntimeFieldInfo field) + { return (field.Attributes & FieldAttributes.NotSerialized) != 0; } |