in localized/ja/04-Refactoring/Refactoring/20-Extract_and_inline_method.cs [24:39]
public List<string> LongMethod(IEnumerable<string> items)
{
var results = new List<string>();
foreach (var item in items)
{
// 1. Extract method, with parameters and return value
// Select the next two lines of code. Note that it uses "item" and creates the "result" variable
// Invoke Extract Method - confirm name, select return value, parameters, make static/virtual, etc.
var result = item.ToUpperInvariant();
result = new string(result.Reverse().ToArray());
// Don't select this line
results.Add(result);
}
return results;
}