Simplify the handling of OperationCanceledException in net35-cf library

This commit is contained in:
Sam Harwell 2014-04-28 07:38:29 -05:00 committed by Sam Harwell
parent caf366d9b4
commit 9995b33cb9
1 changed files with 5 additions and 6 deletions

View File

@ -30,6 +30,10 @@
using System;
using Antlr4.Runtime.Sharpen;
#if COMPACT
using OperationCanceledException = System.Exception;
#endif
namespace Antlr4.Runtime.Misc
{
/// <summary>This exception is thrown to cancel a parsing operation.</summary>
@ -47,12 +51,7 @@ namespace Antlr4.Runtime.Misc
#if !PORTABLE
[System.Serializable]
#endif
public class ParseCanceledException
#if COMPACT
: Exception
#else
: OperationCanceledException
#endif
public class ParseCanceledException : OperationCanceledException
{
public ParseCanceledException()
{