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