Skip to content

InvalidCastException in GetValueFromProperty<T> method in ObjectExtensions when T is string #5359

@Cyrus-Sushiant

Description

@Cyrus-Sushiant

I encountered an exception when I tried to use the GetValueFromProperty<T> method in the ObjectExtensions class with a string type parameter and a property that is not a string. The exception message was: System.InvalidCastException: 'Object must implement IConvertible.'

Metadata

Metadata

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions