public ListOrSingleValue(TValue value, CastErrorMode castErrorMode = CastErrorMode.ThrowExceptionIfList)
 {
     this.CastErrorMode = castErrorMode;
     castErrorMode      = CastErrorMode.ThrowExceptionIfList;
     data = new List <TValue>();
     data.Add(value);
 }
 public ListOrSingleValue(IEnumerable <TValue> values, CastErrorMode castErrorMode = CastErrorMode.ThrowExceptionIfList)
 {
     this.CastErrorMode = castErrorMode;
     castErrorMode      = CastErrorMode.ThrowExceptionIfList;
     data = new List <TValue>(values);
 }
 public ListOrSingleValue(CastErrorMode castErrorMode = CastErrorMode.ThrowExceptionIfList)
 {
     this.CastErrorMode = castErrorMode;
     data = new List <TValue>();
 }