コード例 #1
0
 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;
 }
コード例 #2
0
 public TextDataProvider(string message, TextUtility.Encoding encoding)
 {
     Message  = message;
     Encoding = encoding;
 }