1
Vote

Object value - TypeConverter cannot convert from System.String

description

I have a problem with a field of type object. For example:
public class MyClass
{
  [CsvColumn(FieldIndex = 1)]
  public long Id { get; set; }

  [CsvColumn(FieldIndex = 2)]
  __public object Value { get; set; }__
}
I try read a file, and program throw exception - TypeConverter cannot convert from System.String.

Is it possible to handle a value of type object?

comments