mirror of
https://github.com/AssetRipper/AssetRipper.Text.SourceGeneration.git
synced 2026-11-13 18:06:49 -10:00
20 lines
401 B
C#
20 lines
401 B
C#
namespace AssetRipper.Text.SourceGeneration;
|
|
|
|
public readonly ref struct Using
|
|
{
|
|
private readonly CurlyBrackets curlyBrackets;
|
|
|
|
public IndentedTextWriter Writer => curlyBrackets.Writer;
|
|
|
|
public Using(IndentedTextWriter writer, string content)
|
|
{
|
|
writer.WriteLine($"using ({content})");
|
|
curlyBrackets = new CurlyBrackets(writer);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
curlyBrackets.Dispose();
|
|
}
|
|
}
|