MySql.Data.Entity.EFMySqlDataReader.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( int ordinal ) : object
ordinal int
return object
        public override object GetValue(int ordinal)
        {
            object value = reader.GetValue(ordinal);

            if (types != null)
            {
                if (!(value is DBNull) && value.GetType()
                    != types[ordinal].ClrEquivalentType)
                    value = ChangeType(value, types[ordinal].ClrEquivalentType);
            }
            return value;
        }