/// <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)); }
/// <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)); }