Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created August 8, 2023 15:37
Show Gist options
  • Save jskeet/b8a8746e79071da9232d20a885f4153f to your computer and use it in GitHub Desktop.
Save jskeet/b8a8746e79071da9232d20a885f4153f to your computer and use it in GitHub Desktop.
using System;
public interface IFoo
{
void M(int x = 0);
}
public class Foo : IFoo
{
public void M(int x = 10)
{
Console.WriteLine(x);
}
}
class Test
{
static void Main()
{
IFoo foo = new Foo();
foo.M();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment