Thrift-1786: C# Union Typing
Client: csharp
Patch: Carl Yeksigian

Union typing patch
diff --git a/lib/csharp/src/Protocol/TAbstractBase.cs b/lib/csharp/src/Protocol/TAbstractBase.cs
new file mode 100644
index 0000000..de2e3db
--- /dev/null
+++ b/lib/csharp/src/Protocol/TAbstractBase.cs
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace Thrift.Protocol
+{
+	public interface TAbstractBase
+	{
+		///
+		/// Writes the objects out to the protocol
+		///
+		void Write(TProtocol tProtocol);
+	}
+}
diff --git a/lib/csharp/src/Protocol/TBase.cs b/lib/csharp/src/Protocol/TBase.cs
index 1969bb3..b8b36fb 100644
--- a/lib/csharp/src/Protocol/TBase.cs
+++ b/lib/csharp/src/Protocol/TBase.cs
@@ -19,16 +19,11 @@
 
 namespace Thrift.Protocol
 {
-	public interface TBase
+	public interface TBase : TAbstractBase
 	{
 		///
 		/// Reads the TObject from the given input protocol.
 		///
 		void Read(TProtocol tProtocol);
-
-		///
-		/// Writes the objects out to the protocol
-		///
-		void Write(TProtocol tProtocol);
 	}
 }
diff --git a/lib/csharp/src/Thrift.csproj b/lib/csharp/src/Thrift.csproj
index f803830..ff00d19 100644
--- a/lib/csharp/src/Thrift.csproj
+++ b/lib/csharp/src/Thrift.csproj
@@ -79,6 +79,7 @@
   <ItemGroup>

     <Compile Include="Collections\THashSet.cs" />

     <Compile Include="Properties\AssemblyInfo.cs" />

+    <Compile Include="Protocol\TAbstractBase.cs" />

     <Compile Include="Protocol\TBase.cs" />

     <Compile Include="Protocol\TBase64Utils.cs" />

     <Compile Include="Protocol\TBinaryProtocol.cs" />