nickdodd79 / AutoBogus

A C# library complementing the Bogus generator by adding auto creation and population capabilities.
MIT License
423 stars 49 forks source link

Conversion failed of numeric types other than the integer #73

Open anaparthi-k opened 2 years ago

anaparthi-k commented 2 years ago

Please take look at the below stack trace.

Stack Trace: RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast) RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr) MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig) RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) Templator1.SetPropertyValue(String value, PropertyInfo prop, T transaction, Type concretePropertyType) Templator1.GenerateFromTemplate(String template) TemplateExtensions.GenerateWithTemplate[TType](AutoFaker`1 src, String template)

nickdodd79 commented 2 years ago

Hey @anaparthi-k

Apologies for the delayed response. The template capabilities were added via a PR from another developer, so I am not familiar with the implementation. I will take a look and see what I can do to fix it.

Nick.