AjTalk.Gui.Browser.GetMethodSource C# (CSharp) Method

GetMethodSource() private method

private GetMethodSource ( IMethod method ) : string
method IMethod
return string
        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");
        }