protected CSharpTypeWithMembers(string name) : base(name) { Attributes = new List <CSharpAttribute>(); Members = new CSharpContainerList <CSharpElement>(this); BaseTypes = new List <CSharpType>(); Visibility = CSharpVisibility.Public; }
public CSharpGeneratedFile(UPath filePath) { if (filePath.IsNull || filePath.IsEmpty) { throw new ArgumentNullException(nameof(filePath)); } FilePath = filePath; Members = new CSharpContainerList <CSharpElement>(this); EmitAutoGenerated = true; }
public CSharpNamespace(string name) { Name = name ?? throw new ArgumentNullException(nameof(name)); Members = new CSharpContainerList <CSharpElement>(this); }
public CSharpCompilation() { Diagnostics = new CppDiagnosticBag(); Members = new CSharpContainerList <CSharpElement>(this); }