Methods

Methods and Objects can be accessed using {...}

Lets add a method to the user class

    public class User
    {
        public Guid Id { get; set; } = Guid.NewGuid();
        public string Name { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public string Address { get; set; }
        public string Notes { get; set; } 
        public User Mother { get; set; } 
        public string Say(string message) => message;
        public User GetMother() => this.Mother; 
    }

Bind the Methods

Output

You can use @Tagging with methods and properties

Last updated