コード例 #1
0
 /// <summary>
 /// Create and initialize a StructuredTextItem object from the given input string using the
 /// active item prefix and suffix of the composer
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="composer"></param>
 /// <param name="text"></param>
 /// <returns></returns>
 public static StructuredTextItem ToTextItem <T>(this IStructuredTextComposer composer, T text)
 {
     return(new StructuredTextItem(composer.ActiveItemPrefix, text.ToString(), composer.ActiveItemSuffix));
 }
コード例 #2
0
 /// <summary>
 /// Create and initialize a StructuredTextItem object from the given input string using the
 /// active item prefix and suffix of the composer
 /// </summary>
 /// <param name="composer"></param>
 /// <param name="text"></param>
 /// <returns></returns>
 public static StructuredTextItem ToTextItem(this IStructuredTextComposer composer, string text)
 {
     return(new StructuredTextItem(composer.ActiveItemPrefix, text, composer.ActiveItemSuffix));
 }