i have enabled Nullable Reference Types in my old project and i'm new to this concept.
i have a data model like this :
public class AddClientInput
{
public string Code { get; set; }
public string Name{ get; set; }
}
this compiler show this warning message :
Warning CS8618 Non-nullable property 'Name' must contain a non-null value when exiting constructor.
in typescript i can supress the warning by adding the "null forgiving operator"
class AddClientInput
{
Code!: string;
Name!: string;
}
How can i do something similar to this in c# (without initializing the variable) ?