Click or drag to resize

NamespaceTypeGroup Class

Represents a group of types (TypeDecls and/or TypeDefinitions/Types) and/or Namespaces, with the same name (the contained objects are of type 'object').
Inheritance Hierarchy
SystemObject
  Nova.CodeDOMNamespaceTypeGroup

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

The NamespaceTypeGroup type exposes the following members.

Constructors
  NameDescription
Public methodNamespaceTypeGroup
Create an empty NamespaceTypeGroup.
Public methodNamespaceTypeGroup(Object)
Create a NamespaceTypeGroup, adding the specified object to it.
Top
Properties
  NameDescription
Public propertyCategory
The descriptive category of the code object.
Public propertyCount
The number of items in the group.
Public propertyFirst
Get the first item in the group.
Public propertyIsSynchronized
True if access to the ICollection is synchronized.
Public propertyItem
Get the object in the group at the specified index.
Public propertyName
The name of the NamespaceTypeGroup.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Methods
  NameDescription
Public methodAdd(Object)
Add an object to the group.
Public methodAdd(Type)
Add the specified Type to the group.
Public methodAdd(Namespace)
Add the specified Namespace to the group.
Public methodAdd(TypeDecl)
Add the specified TypeDecl to the group.
Public methodAdd(TypeDefinition)
Add the specified TypeDefinition to the group.
Public methodStatic memberAdd(Object, Object)
Add a source object or group to a target object or group, converting the target into a group if necessary.
Public methodStatic memberAdd(INamedCodeObject, INamedCodeObject)
Add a source object or group to a target object or group, converting the target into a group if necessary.
Public methodAddRange
Add a collection of objects to the group.
Public methodAddToDictionary
This method shouldn't be called on this type.
Public methodClear
Remove all items from the group.
Public methodContains
Check if the group contains the specified code object.
Public methodCopyTo
Copy the objects in the group to the specified array, starting at the specified offset.
Public methodCreateRef
This method is not supported for this type.
Public methodCreateRef(Boolean)
This method is not supported for this type.
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 the contained object with the specified exact name, having a "`N" suffix for generic types.
Public methodFindParentT
This method always returns null for this type.
Public methodGetEnumerator
Get an enumerator for the objects in the group.
Public methodGetFullName
Get the full name of the INamedCodeObject, including any namespace name.
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
Remove the specified object from the group.
Public methodRemoveAt
Remove the object at the specified index from the group.
Public methodRemoveFromDictionary
This method shouldn't be called on this type.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_list
The list of type objects with the same name.
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
In valid code, a NamespaceTypeGroup should contain only TypeDecls and/or TypeDefinitions/Types with the same name (the types being a combination of a non-generic type and/or generic types with the same name but different numbers of type parameters). The two types of objects can be mixed due to external types existing in the same namespace as types declared in the current Solution. Normally, Namespaces shouldn't be involved, since types aren't allowed to have the same name as a child namespace in the same parent namespace (but they could collide with a TypeDecl in a Project that contains invalid code).
See Also