C# Tips

Today's C# Quiz

Quiz

One of explanation about the following C# code is wrong, Which one is it?
(A) MyClass a = c as MyClass; (B) MyClass b = (MyClass)c;

If c is MyClass, a has a reference to c
If c is the derived class of MyClass, a has a reference to MyClass
If c is an object of System.Object, a becomes NULL in (A)
If c is an object of System.Object, b becomes NULL in (B)

Tip

Answer