mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
Don't cache FormattedTypeName. We have at least two representations using this routine. Move to callers if necessary
This commit is contained in:
parent
d20d2c689e
commit
a39ab27081
@ -2276,10 +2276,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
|
||||
}
|
||||
#endregion
|
||||
|
||||
private string _formattedTypeName = null;
|
||||
protected string mkFormattedTypeName(bool incNameSpace, string langle, string rangle)
|
||||
{
|
||||
if (_formattedTypeName == null)
|
||||
{
|
||||
|
||||
StringBuilder fmt = new StringBuilder();
|
||||
@ -2305,9 +2302,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
|
||||
fmt.Append(rangle);
|
||||
}
|
||||
}
|
||||
_formattedTypeName = fmt.ToString();
|
||||
}
|
||||
return _formattedTypeName;
|
||||
return fmt.ToString();
|
||||
}
|
||||
|
||||
protected string mkFormattedTypeName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user