Since this is a structure, it cannot be redefined. It seems that the C # compiler wants grouped types, such as structs, to use the keyword 'private' rather than the keyword 'protected', although functionally there is no difference. Use this instead:
struct Foo { private Object _bar; }
source share