Merge pull request #59 from sharwell/operation-canceled-exception

Simplify the handling of OperationCanceledException in net35-cf library
This commit is contained in:
Sam Harwell 2014-07-02 22:53:05 -05:00
commit 38659d3b79
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()
{