예제 #1
0
 void Test(IListCounter x)
 {
     x.Count = 1;          // CS0229
     // Try one of the following lines instead:
     // ((IList)x).Count = 1;
     // or
     // ((Icounter)x).Count = 1;
 }
예제 #2
0
 static void Foo(IListCounter t)
 {
     t.Test += null;
 }
 static void Foo(IListCounter t)
 {
     t.Count(1);
 }
예제 #4
0
 static void Foo(IListCounter t)
 {
     t.Count = 9;
 }
예제 #5
0
파일: test-746.cs 프로젝트: tgiphil/mono
	static void Foo (IListCounter t)
	{
		t.Count (1); 
	}
예제 #6
0
 void Test(IListCounter x)
 {
     ((Interface_TestClass_maccess_01_I1)x).Count = 1;
     ((Interface_TestClass_maccess_01_I2)x).Count(1);
 }
예제 #7
0
파일: cs0229-2.cs 프로젝트: nlhepler/mono
	static void Foo (IListCounter t)
	{
		t.Test += null;
	}
 static void Foo(IListCounter t)
 {
     foreach (var e in t)
     {
     }
 }
예제 #9
0
	static void Foo (IListCounter t)
	{
		t.Count = 9; 
	}
예제 #10
0
파일: cs0278-2.cs 프로젝트: nlhepler/mono
	static void Foo (IListCounter t)
	{
		foreach (var e in t)
		{
		}
	}