public CzkemUserTemp GetUserTemp(int userid, int index) { var data = string.Empty; var length = 0; var result = _czkem.GetUserTmpStr(_czkem.MachineNumber, userid, index, ref data, ref length); if (result) { return(new CzkemUserTemp { Index = index, Data = data, Length = length, }); } return(null); }