Click or drag to resize

NamespaceTypeDictionary Class

Represents a dictionary of Namespaces and types (TypeDecls and/or TypeDefinitions/Types), allowing multiple entries with the same name.
Inheritance Hierarchy
SystemObject
  Nova.CodeDOMNamespaceTypeDictionary

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public class NamespaceTypeDictionary : ICollection, 
	IEnumerable

The NamespaceTypeDictionary type exposes the following members.

Constructors
  NameDescription
Public methodNamespaceTypeDictionary
Initializes a new instance of the NamespaceTypeDictionary class
Top
Properties
  NameDescription
Public propertyCount
The number of items in the dictionary.
Public propertyIsSynchronized
True if access to the ICollection is synchronized.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Methods
  NameDescription
Public methodAdd(Type)
Add a Type to the dictionary.
Public methodAdd(Namespace)
Add a child Namespace to the dictionary.
Public methodAdd(TypeDecl)
Add a TypeDecl to the dictionary.
Public methodAdd(TypeDefinition)
Add a TypeDefinition to the dictionary.
Protected methodAdd(String, Object)
Add the specified type or namespace object with the specified name to the dictionary.
Public methodClear
Clear all members from the dictionary.
Public methodCopyTo
Copy the objects in the dictionary to the specified array, starting at the specified offset.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Find named code object(s) in the dictionary by name.
Public methodGetEnumerator
Get an enumerator for the objects in the dictionary.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(Type)
Remove the specified Type from the dictionary.
Public methodRemove(Namespace)
Remove the specified child Namespace from the dictionary.
Public methodRemove(TypeDecl)
Remove the specified TypeDecl from the dictionary.
Public methodRemove(TypeDefinition)
Remove the specified TypeDefinition from the dictionary.
Protected methodRemove(String, Object)
Remove the type or namespace object with the specified name from the dictionary.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_dictionary
Top
Extension Methods
  NameDescription
Public Extension MethodIsEmpty
Check if the specified collection is empty or null.
(Defined by CollectionUtil.)
Public Extension MethodNNCount
Get the count of the specified collection, or 0 if it's null.
(Defined by CollectionUtil.)
Public Extension MethodNotEmpty
Check if the specified collection is empty or null.
(Defined by CollectionUtil.)
Public Extension MethodToString
Format the specified collection into a single string using the specified separating string to separate each item. Null items are converted to empty strings.
(Defined by StringUtil.)
Top
Remarks
This dictionary is used by Namespace to store child Namespace, TypeDecl, and TypeDefinition/Type objects (storing items of type 'object'). It handles multiple entries with the same name (for generic types with different type parameter counts) by storing a NamespaceTypeGroup object.
See Also