G
Guest
Does such a function result in a memory leak because of not explicitely
setting result = null?
------------------
public override string GetValueAsString()
{
StringBuilder result = new StringBuilder(10);
result.Append(Month.AsString());
result.Append('/');
result.Append(Day.AsString());
result.Append('/');
result.Append(Year.AsString());
return result.ToString();
}
------------------
Or does the compiler automatically gets that "result" goes off focus now?
best regards,
doc
setting result = null?
------------------
public override string GetValueAsString()
{
StringBuilder result = new StringBuilder(10);
result.Append(Month.AsString());
result.Append('/');
result.Append(Day.AsString());
result.Append('/');
result.Append(Year.AsString());
return result.ToString();
}
------------------
Or does the compiler automatically gets that "result" goes off focus now?
best regards,
doc