C Sharp (C#) - Properties and Encapsulation
Identify the error in this property setter code:
private string name;
public string Name {
get { return name; }
set {
if (value == null || value == "")
throw new ArgumentException("Name cannot be empty");
name = value;
}
}