Check out example codes for "datareader get field names". It will help you in understanding the concepts better.

Code Example 1

var fieldNames = Enumerable.Range(0, reader.FieldCount)
	.Select(reader.GetName)
	.ToArray();

Learn ReactJs, React Native from akashmittal.com