private static string GetObjectText(IBaseConstruct obj) { string text = obj.IsLeaf ? obj.GetFullText() : obj.GetOuterText(); text = Common.Utility.StandardizeLineBreaks(text, Common.Utility.LineBreaks.Unix); if (text.IndexOf('\n') == 0) { text = text.Remove(0, 1); } return(text); }
private static string GetOuterText(IBaseConstruct bc) { return(bc != null?bc.GetOuterText() : string.Empty); }
private static string GetObjectText(IBaseConstruct obj) { string text = obj.IsLeaf ? obj.GetFullText() : obj.GetOuterText(); text = Common.Utility.StandardizeLineBreaks(text, Common.Utility.LineBreaks.Unix); if (text.IndexOf('\n') == 0) text = text.Remove(0, 1); return text; }