Announcement

Collapse
No announcement yet.

"using static" ignores preserveMemberCase=true

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    "using static" ignores preserveMemberCase=true

    "using static" ignores preserveMemberCase=true setting, and outputs member names in lowercase.

    Example demonstrating the problem:

    
    using Bridge;
    using static BridgeLibrary.Car;
    
    namespace BridgeLibrary
    {
        public class Car
        {
            [ObjectLiteral]
            public class Wheel
            {
                public string Brand { get; set; }
            }
        }
    
        public class Main
        {
            string Compare(Car.Wheel wheel1, Wheel wheel2)
            {
                // Generates JavaScript: "wheel1.Brand + wheel2.brand", that is..
                // a "using static" type ignores the "preserveMemberCase=true"
                // in bridge.json:
                return wheel1.Brand + wheel2.Brand;
            }
        }
    }

    #2
    Hello,

    The declaration using static is a C#6 syntax feature that is currently not supported in Bridge. This syntax option will be supported in the release following Bridge 1.14.

    Comment

    Working...
    X