c# Programming Glossary: abaz
Why no compiler error when I cast a class to an interface it doesn't implement? http://stackoverflow.com/questions/12335757/why-no-compiler-error-when-i-cast-a-class-to-an-interface-it-doesnt-implement cast to an abstract class. class Program abstract class aBaz public abstract int A get interface IBar int B get class Foo.. Foo compiler error as expected since Foo doesn't inherit aBaz aBaz baz aBaz foo no compiler error even though Foo doesn't.. compiler error as expected since Foo doesn't inherit aBaz aBaz baz aBaz foo no compiler error even though Foo doesn't implement..
|