Enumerable.Empty vs new T[0]

The need for creating an Empty array/collection rises quite often in most applications. This, normally presents us with two options. Using the Constructor, new T[0]; Using the extension method, Enumerable.Empty Let's dive a bit deeper into both and examine how both these options work and differ. Using new T[0] Creating an empty array with Array … Continue reading Enumerable.Empty vs new T[0]