Is there any difference between:
public class user
{
public string Name { get; set; }
}
And:
public class user
{
public string Name;
}
??? Thank you
Is there any difference between:
public class user
{
public string Name { get; set; }
}
And:
public class user
{
public string Name;
}
??? Thank you
First one is a property, second is a field.
https://msdn.microsoft.com/en-gb/library/x9fsa0sw.aspx https://msdn.microsoft.com/en-us/library/ms173118.aspx