diff options
Diffstat (limited to 'src/mscorlib/src/System/EntryPointNotFoundException.cs')
-rw-r--r-- | src/mscorlib/src/System/EntryPointNotFoundException.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/EntryPointNotFoundException.cs b/src/mscorlib/src/System/EntryPointNotFoundException.cs index 9c1b842efa..589b805e71 100644 --- a/src/mscorlib/src/System/EntryPointNotFoundException.cs +++ b/src/mscorlib/src/System/EntryPointNotFoundException.cs @@ -15,8 +15,11 @@ namespace System { using System; using System.Runtime.Serialization; -[System.Runtime.InteropServices.ComVisible(true)] - [Serializable] public class EntryPointNotFoundException : TypeLoadException { + [System.Runtime.InteropServices.ComVisible(true)] +#if FEATURE_SERIALIZATION + [Serializable] +#endif + public class EntryPointNotFoundException : TypeLoadException { public EntryPointNotFoundException() : base(Environment.GetResourceString("Arg_EntryPointNotFoundException")) { SetErrorCode(__HResults.COR_E_ENTRYPOINTNOTFOUND); |