コード例 #1
0
 public OrchardException(LocalizedString message)
     : base(message.Text) {
     _localizedMessage = message;
 }
コード例 #2
0
 public OrchardException(LocalizedString message, Exception innerException)
     : base(message.Text, innerException) {
     _localizedMessage = message;
 }
コード例 #3
0
ファイル: StringExtensions.cs プロジェクト: jp311/Brochard
 public static LocalizedString OrDefault(this string text, LocalizedString defaultValue)
 {
     return String.IsNullOrEmpty(text)
         ? defaultValue
         : new LocalizedString(text);
 }
コード例 #4
0
 public OrchardSecurityException(LocalizedString message, Exception innerException) : base(message, innerException) { }
コード例 #5
0
 public OrchardSecurityException(LocalizedString message) : base(message) { }
コード例 #6
0
 public static LocalizedString TextOrDefault(string text, LocalizedString defaultValue) {
     if (string.IsNullOrEmpty(text))
         return defaultValue;
     return new LocalizedString(text);
 }