I have a class in C# which looks like this:
class A {
protected SomeClass Field;
}
class B: A {}
and following code in F#:
type C() =
inherit B()
member this.SomeMethod() =
let magic() = base.Field.SomeMoreMagic(someParam) //this.Field also fails
...
in which I want to access the protected field Field
. I know that I could access protected fields from class B by simple type base.something
(which is also answered here) but when I type base.Field
to access protected field from class A I get an error that struct or class field is not accessible from this code location
, because Field
is declared in class A(?).
My question is, is there some possibility to access it?