O
Oleg Subachev
I have one interface "Intf1" with read-write property "Prop" (with "get" and
"set" accessors).
Then I declare derived interface "Intf2" with the same property "Prop"
declared as read-only (without "set" accessor).
Property "Prop" in derived interface "Intf2" is marked with "new" modifier.
Then I implement derived interface "Intf2" in class "Clss2" with read-only
property "Prop" (without "set" accessor).
Property "Prop" in class "Clss2" is marked with "new" modifier.
During compilation I get the following error:
*******************
Clss2 does not implement interface member 'Intf1.Prop.set'
*******************
but property "Prop" is declared in interface "Intf2" and is read-only.
What's wrong ?
Oleg Subachev
"set" accessors).
Then I declare derived interface "Intf2" with the same property "Prop"
declared as read-only (without "set" accessor).
Property "Prop" in derived interface "Intf2" is marked with "new" modifier.
Then I implement derived interface "Intf2" in class "Clss2" with read-only
property "Prop" (without "set" accessor).
Property "Prop" in class "Clss2" is marked with "new" modifier.
During compilation I get the following error:
*******************
Clss2 does not implement interface member 'Intf1.Prop.set'
*******************
but property "Prop" is declared in interface "Intf2" and is read-only.
What's wrong ?
Oleg Subachev