49 lines
457 B
C#
49 lines
457 B
C#
|
using System;
|
||
|
|
||
|
namespace MonoTest
|
||
|
{
|
||
|
public class MainClass
|
||
|
{
|
||
|
public static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public interface ITest
|
||
|
{
|
||
|
void Get<T> (object o);
|
||
|
}
|
||
|
|
||
|
public class TestImpl : ITest
|
||
|
{
|
||
|
public void Get<T> ()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public void Get<T> (object o)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void ITest.Get<T> (object o)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
interface IG<T>
|
||
|
{
|
||
|
void M ();
|
||
|
}
|
||
|
|
||
|
class C : IG<int>, IG<string>
|
||
|
{
|
||
|
void IG<int>.M ()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void IG<string>.M ()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|