Json : Fetch all keys using Linq

Given a Json, how do we get all the keys in it ? Just the keys. For example, Consider the Json below. Given the above Json, you would like to get all the keys. You might be later interested to show this as a Menu or Dropdown, that's down to the requirements. But, how do … Continue reading Json : Fetch all keys using Linq

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]