public RecursiveCodeException AddToRecursiveChain(string message, string className, string Line) { ErrorStruct tempo = new ErrorStruct(); tempo.ClassName = className; tempo.Message = message; tempo.Line = Line; tempo.ErrorNumber = Messages.Count + 1; tempo.TimeStamp = "[" + DateTime.Now.ToString("h:mm:ss tt") + "]"; Messages.Add(tempo); return(this); }
public RecursiveCodeLog AddToRecursiveChain(string message, string className, string Line) { ErrorStruct tempo = new ErrorStruct { ClassName = className, Message = message, Line = Line, ErrorNumber = Messages.Count + 1, TimeStamp = "[" + DateTime.Now.ToString("h:mm:ss tt") + "]" }; Messages.Add(tempo); return(this); }