public TextSyndicationContent(string text, TextSyndicationContentKind textKind)
 {
     if (!TextSyndicationContentKindHelper.IsDefined(textKind))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("textKind"));
     }
     this.text     = text;
     this.textKind = textKind;
 }
Esempio n. 2
0
 public TextSyndicationContent(string text, TextSyndicationContentKind textKind)
 {
     if (!TextSyndicationContentKindHelper.IsDefined(textKind))
     {
         throw new ArgumentOutOfRangeException(nameof(textKind));
     }
     _text     = text;
     _textKind = textKind;
 }