I need to clear this warning :
try { doSomething() } catch (AmbiguousMatchException MyException) { doSomethingElse() }
The complier
but never used means that you should use it after catch() such as writing its value to console, then this warning message will disappear.
but never used
catch (AmbiguousMatchException MyException) { Console.WriteLine(MyException); // use it here }