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