Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Implementing two interfaces with the same method signature
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { IOne x = new MyClass(); x.DoSomething("IOne here"); ITwo y = new MyClass(); y.DoSomething("ITwo here"); // Console.WriteLine("Hello, world!"); } } public interface IOne { void DoSomething(string x); } public interface ITwo { void DoSomething(string x); } public class MyClass : IOne, ITwo { void IOne.DoSomething(string x) { Console.WriteLine(x); } void ITwo.DoSomething(string x) { Console.WriteLine(x); } } }
run
|
edit
|
history
|
help
0
Recomment toTheGit(TestArray)
Interface
Linq
12
SADCAX AAAA
JJ 2
hello world
ASCII table generator
Array value changer?
Area of a field