csharp use readonly array as method default
Code Example - csharp use readonly array as method default
private static readonly int[] FooDefault = new int[] { 5, 10 };
public void Foo(int[] x = null)
{
x = x ?? FooDefault;
}