Agribusiness.Import.Helpers.ExcelHelpers.ReadBoolCell C# (CSharp) Method

ReadBoolCell() public static method

public static ReadBoolCell ( Row row, int index ) : bool?
row Row
index int
return bool?
        public static bool? ReadBoolCell(Row row, int index)
        {
            var val = row.GetCell(index);

            if (val != null)
            {
                return val.ToString() == "yes" ? true : false;
            }

            return null;
        }