private string GetRegion(string region, bool onlyBody = false, string fileName = "OverloadedMethods.cs") { var code = dir.GetContent(fileName).LineEndingsToUnixStyle(); var extractor = new CsMembersExtractor(code); return extractor.GetRegion(new Label { Name = region, OnlyBody = onlyBody }); }
private string GetRegion(string region, bool onlyBody = false, string fileName = "OverloadedMethods.cs") { var code = fs.GetContent(fileName).LineEndingsToUnixStyle(); var extractor = new CsMembersExtractor(code); return(extractor.GetRegion(new Label { Name = region, OnlyBody = onlyBody })); }