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