Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4832

superfluous backing field causes CS0169 "field never used"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • netstd - Library
    • None
    • Patch Available

    Description

      The following IDL

      exception InvalidFoo \{
          1: required string bar
      }
      

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

      [DataContract]
      public partial class InvalidFooFault
      \{
        private string _bar;   // CS0169 field never used
      
        [DataMember(Order = 0)]
        public string Bar { get; set; }
      
      }
      

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              jensg Jens Geyer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m