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'.'