public int DefineNamespace(string name, string[] using_clauses, int parent) { if (!this.creating) { throw new InvalidOperationException(); } int index = this.file.GetNextNamespaceIndex(); NamespaceEntry ns = new NamespaceEntry(name, index, using_clauses, parent); this.namespaces.Add(ns); return(index); }
public int DefineNamespace (string name, string[] using_clauses, int parent) { if (!creating) throw new InvalidOperationException (); int index = file.GetNextNamespaceIndex (); NamespaceEntry ns = new NamespaceEntry (name, index, using_clauses, parent); namespaces.Add (ns); return index; }