Esempio n. 1
0
 /// <summary>
 /// Add the specified <see cref="Namespace"/> to the group.
 /// </summary>
 public void Add(Namespace @namespace)
 {
     Add((object)@namespace);
 }
Esempio n. 2
0
 protected override void NamespaceCreated(Namespace @namespace)
 {
     // Maintain dictionary of all namespaces by full name
     lock (this)
         _namespaces.Add(@namespace.FullName, @namespace);
 }
Esempio n. 3
0
 /// <summary>
 /// Add a child <see cref="Namespace"/> to the dictionary.
 /// </summary>
 public void Add(Namespace @namespace)
 {
     Add(@namespace.Name, @namespace);
 }
 /// <summary>
 /// Remove the specified child <see cref="Namespace"/> from the current <see cref="Namespace"/>.
 /// </summary>
 public void Remove(Namespace @namespace)
 {
     lock (this)
         _children.Remove(@namespace);
 }
Esempio n. 5
0
 /// <summary>
 /// Remove the specified child <see cref="Namespace"/> from the dictionary.
 /// </summary>
 public void Remove(Namespace @namespace)
 {
     Remove(@namespace.Name, @namespace);
 }
 /// <summary>
 /// Create a <see cref="NamespaceRef"/> from a <see cref="Namespace"/>.
 /// </summary>
 public NamespaceRef(Namespace @namespace)
     : base(@namespace, false)
 {
 }
 /// <summary>
 /// Create a <see cref="NamespaceRef"/> from a <see cref="Namespace"/>.
 /// </summary>
 public NamespaceRef(Namespace @namespace, bool isFirstOnLine)
     : base(@namespace, isFirstOnLine)
 {
 }
 /// <summary>
 /// Remove a child <see cref="Namespace"/> from the namespace.
 /// </summary>
 public void Remove(Namespace @namespace)
 {
     ((Namespace)_reference).Remove(@namespace);
 }
 /// <summary>
 /// Add a child <see cref="Namespace"/> to the namespace.
 /// </summary>
 public void Add(Namespace @namespace)
 {
     ((Namespace)_reference).Add(@namespace);
 }