by Deepak Dhakal
7. February 2012 13:04
I have namaspace for two version of the same class, V1 and v2 namespace Hello.ThisIsAnExample.Noway.StillAnExample.V1
{ Class A { public void Nothing() { } } }
namespace Hello.ThisIsAnExample.Noway.StillAnExample.V2 { Class A { public void Nothing() { } } }
Then in the Main class, use like this
using V1=Hello.ThisIsAnExample.Noway.StillAnExample.V1 using V2=Hello.ThisIsAnExample.Noway.StillAnExample.V2
Pubic Main() { V1.A.Nothing(); // Calls V1 V2.A.Nothing(); // Calls V2 }
Sweet !!! is not it ???
345dc8bf-9984-4bd8-bfa6-98f53d083c77|2|4.5
Tags:
.Net