i'm beginner to C# and WPF and I had a question while studying. Data Binding with get, set is work well like below.
public partial class Some: Window
{
public string Name { get; set; } = "NAME3";
public Some()
{
InitializeComponent();
this.DataContext = this;
}
But, Data Binding without get,set dosen't work at all.
public partial class Some: Window
{
public string Name = "NAME3";
public Some()
{
InitializeComponent();
this.DataContext = this;
}
What is difference between them? Thank you