C#: Catch exceptions by name.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665631 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Server/TSimpleServer.cs b/lib/csharp/src/Server/TSimpleServer.cs
index f120dff..0679bb2 100644
--- a/lib/csharp/src/Server/TSimpleServer.cs
+++ b/lib/csharp/src/Server/TSimpleServer.cs
@@ -85,7 +85,7 @@
 						while (processor.Process(inputProtocol, outputProtocol)) { }
 					}
 				}
-				catch (TTransportException ttx)
+				catch (TTransportException)
 				{
 					// Client died, just move on
 				}
diff --git a/lib/csharp/src/Server/TThreadPoolServer.cs b/lib/csharp/src/Server/TThreadPoolServer.cs
index f8ee355..ac7aa8b 100644
--- a/lib/csharp/src/Server/TThreadPoolServer.cs
+++ b/lib/csharp/src/Server/TThreadPoolServer.cs
@@ -140,7 +140,7 @@
 					//keep processing requests until client disconnects
 				}
 			}
-			catch (TTransportException ttx)
+			catch (TTransportException)
 			{
 				// Assume the client died and continue silently
 			}
diff --git a/lib/csharp/src/Transport/TServerSocket.cs b/lib/csharp/src/Transport/TServerSocket.cs
index 3b5c8dd..33ada7b 100644
--- a/lib/csharp/src/Transport/TServerSocket.cs
+++ b/lib/csharp/src/Transport/TServerSocket.cs
@@ -70,7 +70,7 @@
 				// Make server socket
 				server = new TcpListener(System.Net.IPAddress.Any, this.port);
 			}
-			catch (Exception e)
+			catch (Exception)
 			{
 				server = null;
 				throw new TTransportException("Could not create ServerSocket on port " + port + ".");