Skip to content

Field commands issue. #27

Closed
Closed
@ChebanovDD

Description

@ChebanovDD

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);
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions