Click or drag to resize

NamedCodeObjectGroup Class

Represents a group of named code objects (INamedCodeObjects) with the same name, such as overloaded methods or other name collisions. Differs from NamedObjectGroup in that it can only hold INamedCodeObjects, and NOT metadata (IMemberDefinition/MemberInfo).
Inheritance Hierarchy
SystemObject
  Nova.CodeDOMNamedCodeObjectGroup

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

The NamedCodeObjectGroup type exposes the following members.

Constructors
  NameDescription
Public methodNamedCodeObjectGroup
Create an empty NamedCodeObjectGroup.
Public methodNamedCodeObjectGroup(INamedCodeObject)
Create a NamedCodeObjectGroup, 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 propertyIsReadOnly
Returns true if the ICollection is read-only.
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 NamedCodeObjectGroup.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Methods
  NameDescription
Public methodAdd(INamedCodeObject)
Add the specified INamedCodeObject to the group.
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 INamedCodeObjects to the group.
Public methodAddToDictionary
Add this NamedCodeObjectGroup to the specified dictionary.
Public methodClear
Remove all items from the group.
Public methodContains
Check if the group contains the specified INamedCodeObject.
Public methodCopyTo(Array, Int32)
Copy the objects in the group to the specified array, starting at the specified offset.
Public methodCopyTo(INamedCodeObject, Int32)
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 methodFindParentT
This method always returns null for this type.
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 named code object from the group.
Public methodRemoveAt
Remove the object at the specified index from the group.
Public methodRemoveFromDictionary
Remove this NamedCodeObjectGroup from the specified dictionary.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_list
The list of code 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
Used by NamedCodeObjectDictionary to hold groups of child INamedCodeObjects with the same name.
See Also