Esempio n. 1
0
 /// <summary>Convert event id to string</summary>
 /// <param name="id">The id to convert to string</param>
 /// <returns>String value id converted back to enum</returns>
 public string EventId(int id)
 {
     return(SpConverter.IntToEnum <TEvent>(id).ToString() ?? String.Empty);
 }
Esempio n. 2
0
 /// <summary>Convert the message id to string</summary>
 /// <param name="id">The message id to convert to string</param>
 /// <returns>String value id converted back to enum</returns>
 public string MsgTypeId(int id)
 {
     return(SpConverter.IntToEnum <TMsg>(id).ToString() ?? String.Empty);
 }
Esempio n. 3
0
 /// <summary>Convert State id to string via enum</summary>
 /// <param name="id">The id to convert to string</param>
 /// <returns>String value id converted back to enum</returns>
 public string StateId(int id)
 {
     return(SpConverter.IntToEnum <TState>(id).ToString() ?? String.Empty);
 }