Пример #1
0
 /// <summary>
 /// Conditionally render the string based on a condition. Convenient if you want to avoid a bunch of messy script tags in the views.
 /// </summary>
 /// <param name="condition"></param>
 /// <returns></returns>
 public string ToString(bool condition)
 {
     return(condition ? LocalizationManager.GetTextForKey(this) : string.Empty);
 }