Example 2: IL Decompilation of GetNewName
private string GetNewString(string currentString, int requiredLength) { int local0; requiredLength = requiredLength + 1; if (requiredLength > this.m_MaxCapacity) throw new ArgumentOutOfRangeException( Environment.GetResourceString ("ArgumentOutOfRange_NegativeCapacity"), "requiredLength"); local0 = currentString.Capacity * 2; if (local0 < requiredLength) local0 = requiredLength; if (local0 > this.m_MaxCapacity) local0 = this.m_MaxCapacity; if (local0 <= 0) throw new ArgumentOutOfRangeException( Environment.GetResourceString ("ArgumentOutOfRange_NegativeCapacity")); return String.GetStringForStringBuilder(currentString, local0); })