S
shapper
Hello,
I am using the following:
if (ValidationHelper.IsValidLenght(_Name, 0, 400)) ? _Name = value :
_errors.Add("Name", "Msg");
However is not valid. Can't I use this?
What is the correct short notation for an if with else in C#?
Thank You,
Miguel
I am using the following:
if (ValidationHelper.IsValidLenght(_Name, 0, 400)) ? _Name = value :
_errors.Add("Name", "Msg");
However is not valid. Can't I use this?
What is the correct short notation for an if with else in C#?
Thank You,
Miguel