public TextSample(string text) { if (text == null) { throw new ArgumentNullException("text"); } Text = text; }