I am creating a class with some required properties. I have decorated them with the [Required] thing, however, it's still complaining. Are you supposed to have both [Required] and the required keyword? Example:
public class A{ [Required] public string Name { get; set; }}
public class A{ [Required] public string Name { get; set; }}
Should it be this instead?:
public class A{ [Required] public required string Name { get; set; }}
public class A{ [Required] public required string Name { get; set; }}