protected static void ApplyComments(StreamWriter sw, TxtFormat format, TxtLine line) { string tab = format.CommentsFormat != null ? format.CommentsFormat : string.Empty; if (line.Comments != null) { sw.WriteLine("{0}/// <summary>", tab); sw.WriteLine("{0}/// {1}", tab, line.Comments); sw.WriteLine("{0}/// </summary>", tab); } }
protected string ApplyFormat(TxtFormat format, TxtLine line) { List <string> values = new List <string>(); foreach (string parameter in format.Parameters) { if (line.Values[HeadersHash[parameter]] == "_") { return(null); } values.Add(line.Values[HeadersHash[parameter]]); } return(string.Format(format.Format, values.ToArray())); }