Open
Description
Types which have no Namespace cause a compiler error (Identifier expected)
using IDisposableGenerator;
//namespace Test;
[GenerateDispose(false)]
public partial class LogWriter {
[DisposeField(false)]
private readonly StreamWriter _streamWriter;
public LogWriter(string path) {
_streamWriter = new StreamWriter(path);
}
public void WriteLine(string text) => _streamWriter.WriteLine(text.ToUpper());
}
Metadata
Assignees
Labels
No labels