Jens Geyer created THRIFT-4832:
----------------------------------

             Summary: superfluous backing field causes CS0169 "field never used"
                 Key: THRIFT-4832
                 URL: https://issues.apache.org/jira/browse/THRIFT-4832
             Project: Thrift
          Issue Type: Bug
          Components: netstd - Library
            Reporter: Jens Geyer
            Assignee: Jens Geyer


The following IDL

{code}
exception InvalidFoo \{
    1: required string bar
}
{code}

when used with {{wcf}} generates code with an superfluous backing field at the 
Fault class:

{code}
[DataContract]
public partial class InvalidFooFault
\{
  private string _bar;   // CS0169 field never used

  [DataMember(Order = 0)]
  public string Bar { get; set; }

}
{code}




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

Reply via email to