[ 
https://issues.apache.org/jira/browse/THRIFT-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627914#action_12627914
 ] 

Craig Kimerer commented on THRIFT-129:
--------------------------------------

Is there a reason the code cant be...

Either:
{code}

out << " : ";
if(is_exception) {
     out << "Exception, ";
out << " TBase";

{code}

Or:
{code}

if(is_exception) {
    out << " : Exception, TBase";
}
else {
     out << " : TBase";
}

{code}

This will give all thrift structs including exceptions your Read & Write

> Update CSharp compiler and Library to generate data structures that extend 
> TBase.cs
> -----------------------------------------------------------------------------------
>
>                 Key: THRIFT-129
>                 URL: https://issues.apache.org/jira/browse/THRIFT-129
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (C#), Library (C#)
>            Reporter: Michael Ward
>         Attachments: my.patch
>
>
> The C# library does not currently have a base class/interface for the data 
> structures being generated to extend from.  Without this you are required to 
> access the Read(TProtocol) and Write(TProtocol) methods via reflection.  
> I have created a patch the defines the TBase class and updates the generator 
> to use this for the data structures created.  This change is similar to what 
> Thrift currently provides for Java.
> Cheers,
> Mike

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to