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

Sergey T commented on THRIFT-4575:
----------------------------------

The problem is that API methods returns objects of type 
"BaseNamespase.API.Type", but actual data are declared in another type - 
"BaseNamespace.Type". And caller don't have access to that data fields, using 
returned object.

> Compiled partial classes in different namespace
> -----------------------------------------------
>
>                 Key: THRIFT-4575
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4575
>             Project: Thrift
>          Issue Type: Bug
>          Components: .NETCore - Compiler
>    Affects Versions: 0.11.0
>            Reporter: Sergey T
>            Priority: Major
>         Attachments: API.cs, PoolGetResult.cs, beta_api.thrift
>
>
> Cannot use compiled source code for netcore target, it generates partial 
> classes in different namespaces, one as nested classes of API class, and 
> another - in separate file. But in c# these two classes are not part of one 
> and have two different types:
> 1:
> namespace BetaApi
> {
> public partial class PoolGetResult : TBase
>  {
> ....
> 2:
> namespace BetaApi
> {
>  public partial class API
>  {
> ...
> public partial class PoolGetResult : TBase
> {
> ...
>  
> See attached files



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to