Closed ChebanovDD closed 1 year ago
The following code leads to the Specified cast is not valid. exception. Because of trying to cast FieldInfo to PropertyInfo.
Specified cast is not valid.
FieldInfo
PropertyInfo
public class MyViewModel : IBindingContext { [Observable] private readonly ICommand<string> _command = new Command<string>(Debug.Log); }
Describe the bug
The following code leads to the
Specified cast is not valid.
exception. Because of trying to castFieldInfo
toPropertyInfo
.