private string GetMethodSource(IMethod method) { if (method == null || method.SourceCode == null) return string.Empty; if (method.SourceCode.Contains("\r\n")) return method.SourceCode; return method.SourceCode.Replace("\n", "\r\n"); }