C Sharp (C#) - Properties and Encapsulation
Identify the error in this code snippet:
class User {
public string Username { get; set; }
}
var user = new User();
user.Username = 12345;
Console.WriteLine(user.Username);