public TextDataSource(string textSource, TextUtility.Encoding textEncoding) { if (string.IsNullOrEmpty(textSource)) { throw new ArgumentException("TexDataSource constructor: given string is null or empty and can not be used as data source"); } Text = textSource; TextEncoding = textEncoding; }
public TextDataProvider(string message, TextUtility.Encoding encoding) { Message = message; Encoding = encoding; }