FieldCount Property

Syntax:

public int FieldCount { get; }

Description:

Type: System.Int32

Gets the number of columns in the current row.

Reference:

System.Data.Common.DbDataReader.FieldCount