void Test(IListCounter x) { x.Count = 1; // CS0229 // Try one of the following lines instead: // ((IList)x).Count = 1; // or // ((Icounter)x).Count = 1; }
static void Foo(IListCounter t) { t.Test += null; }
static void Foo(IListCounter t) { t.Count(1); }
static void Foo(IListCounter t) { t.Count = 9; }
static void Foo (IListCounter t) { t.Count (1); }
void Test(IListCounter x) { ((Interface_TestClass_maccess_01_I1)x).Count = 1; ((Interface_TestClass_maccess_01_I2)x).Count(1); }
static void Foo (IListCounter t) { t.Test += null; }
static void Foo(IListCounter t) { foreach (var e in t) { } }
static void Foo (IListCounter t) { t.Count = 9; }
static void Foo (IListCounter t) { foreach (var e in t) { } }