/// <summary> /// Serializes a collection of LocalizedContent items to a JSON string. /// </summary> public static string Serialize(this IEnumerable <LocalizedContent> contents) { return(LocalizedContent.Serialize(contents)); }
/// <summary> /// Serializes a single LocalizedContent item to a JSON string. /// </summary> public static string Serialize(this LocalizedContent content) { var contents = new[] { content }; return(LocalizedContent.Serialize(contents)); }