Welcome to ForkCan.com
ForkCan is all about sharing code in a social way.
Discuss, debate or argue with other devs about their or your own code.
Give other devs feedback or make a Fork (Make a better version of a shared code).
Rate the code, if you use the code mark it as used so others can see if the shared code is used by someone.
Help each other to be better devs and to be more productive.
Features not working yet:
Flag a post
QR Code
Tiny Url
http://4kcan.com/s/MjM2
Shows how C# behaves when interface methods are reimplemented on derived types.
0
class A : IDisposable { public void Dispose() { Console.WriteLine("A disposed"); } } public class B : A, IDisposable { void IDisposable.Dispose() { Console.WriteLine("B disposed"); base.Dispose(); } }
// Use A a = new B();
a.Dispose(); // Outputs: A disposed
September 01, 2010 6:47 PM
You must log in before you can give any feedback
You must log in before you can post a comment