public ReceivedValueInteger64 GetSettingInteger64(string FolderPath, string IdSetting) { ReceivedValueText TextValue = GetStringValueOfSetting(FolderPath, IdSetting); if (TextValue.Code.Error) { return(ReceivedValueInteger64.Error(TextValue.Code.NumericValue, TextValue.Code.StringValue)); } return(CvManager.CvInt64.FromString(TextValue.Value)); }
public ReceivedValueInteger64 FromString(string value) { if (long.TryParse(value, out long x)) { return(ReceivedValueInteger64.Success(x)); } else { return(ReceivedValueInteger64.Error(ReturnCodeFactory.NcError)); } }