equalsAsType<T> method

bool equalsAsType <T>(
  1. TypeCode type,
  2. dynamic obj
)

Compares this object value to specified specified value. When direct comparison gives negative results it converts values to type specified by type code and compare them again.

  • obj the value to be compared with. Returns true when objects are equal and false otherwise.

See TypeConverter.toType