Interface Member Accessibility Public?

Topics: APIs
Aug 13, 2014 at 3:12 PM
As a first step, I just want to confirm whether what I am seeing is anticipated.

I am loading this code into a syntax tree and then retrieving the symbol
        public interface Bar
           string Foo{get; set;}
My surprise is that that


is returning Public.

If this is expected, it's odd, and I'm wondering why.

If it's not expected, I'll look further in my own code for a repro.
Aug 13, 2014 at 4:09 PM
Is newItem the symbol for Foo? As members of interfaces are always public, this is to be expected and I don't understand your confusion. You're working at the symbolic (semantic) level here, not the syntactic level.