P
Size: a a a
P
НП
P
MC
MC
Y
Y
public class User
{
[Required(ErrorMessage ="Empty name")]
public string Name { get; set; }
public User(string n)
{
Name = n;
}
public User() { }
public override string ToString()
{
return $"Name:{Name}";
}
}
class Program
{
static void Main(string[] args)
{
User user = new User();
Console.WriteLine(user);
Console.ReadLine();
}
}
Y
MD
t
S
IM
IM
IM
S
IM
S
S
S
S