79439553

Date: 2025-02-14 13:41:46
Score: 3
Natty:
Report link

I created an instance of inputObject like this: var inputObject = ClassFactory.CreateObject(new string[] { "col0", "col1" }, new Type[] { typeof(string), typeof(bool) } ); inputObject?.GetType().GetProperty("col0")?.SetValue(inputObject, "Wow... Loved this place.");

but when I call: var predict = predictMethod.Invoke(dynamicPredictionEngine, new[] { inputObject });

I get an error :-(: System.ArgumentException: 'Object of type 'DynamicInput' cannot be converted to type 'DynamicInput'.'

Reasons:
  • RegEx Blacklisted phrase (1): I get an error
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Michal Siedlecki