LibraStack / UnityMvvmToolkit

Brings data-binding to your Unity project
MIT License
469 stars 27 forks source link

Field commands issue. #27

Closed ChebanovDD closed 1 year ago

ChebanovDD commented 1 year ago

Describe the bug

The following code leads to the Specified cast is not valid. exception. Because of trying to cast FieldInfo to PropertyInfo.

public class MyViewModel : IBindingContext
{
    [Observable]
    private readonly ICommand<string> _command = new Command<string>(Debug.Log);
}