class MyEnum : IEnumerable<char> { public GetEnumerator() { ... } IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); }
Quote:Expression-bodied and block-bodied implementations compile to the same IL, so there is no difference in performance between them.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)