c# Programming Glossary: derived1
Generic type parameter covariance and multiple interface implementations http://stackoverflow.com/questions/14562047/generic-type-parameter-covariance-and-multiple-interface-implementations And If I define this class hierarchy class Base class Derived1 Base class Derived2 Base Then I can implement the interface.. interface implementation class DoubleDown IGeneric Derived1 IGeneric Derived2 string IGeneric Derived1 .GetName return Derived1.. IGeneric Derived1 IGeneric Derived2 string IGeneric Derived1 .GetName return Derived1 string IGeneric Derived2 .GetName return..
What is allowed in Visual Basic that's prohibited in C# (or vice versa)? http://stackoverflow.com/questions/966457/what-is-allowed-in-visual-basic-thats-prohibited-in-c-sharp-or-vice-versa class Base protected m_x as integer end class class Derived1 inherits Base public sub Foo other as Base other.m_x 2 end sub.. end class class Derived2 inherits Base end class Because a Derived1 is a base it can access protected members of other which is.. that contains the method. Because Foo here is defined in Derived1 C# will only allows Foo to access Base members from a Derived1..
|