diff options
Diffstat (limited to 'src/mscorlib/src/System/OutOfMemoryException.cs')
-rw-r--r-- | src/mscorlib/src/System/OutOfMemoryException.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/OutOfMemoryException.cs b/src/mscorlib/src/System/OutOfMemoryException.cs index 9bea0b46d7..5c1b6e90f6 100644 --- a/src/mscorlib/src/System/OutOfMemoryException.cs +++ b/src/mscorlib/src/System/OutOfMemoryException.cs @@ -17,7 +17,9 @@ namespace System { using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] +#if FEATURE_SERIALIZATION [Serializable] +#endif public class OutOfMemoryException : SystemException { public OutOfMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { |