Does such a function result in a memory leak because of not explicitely
setting result = null?
------------------
public override string GetValueAsStrin g()
{
StringBuilder result = new StringBuilder(1 0);
result.Append(M onth.AsString() );
result.Append('/');
result.Append(D ay.AsString());
result.Append('/');
result.Append(Y ear.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 GetValueAsStrin g()
{
StringBuilder result = new StringBuilder(1 0);
result.Append(M onth.AsString() );
result.Append('/');
result.Append(D ay.AsString());
result.Append('/');
result.Append(Y ear.AsString()) ;
return result.ToString ();
}
------------------
Or does the compiler automatically gets that "result" goes off focus now?
best regards,
doc
Comment