Click or drag to resize

NamedObjectGroup Class

Represents a group of named code or metadata objects (INamedCodeObjects and/or IMemberDefinitions/MemberInfos) with the same name, such as overloaded methods or other name collisions. Differs from NamedCodeObjectGroup in that it can hold metadata (IMemberDefinition/MemberInfo) in addition to INamedCodeObjects.
Inheritance Hierarchy
SystemObject
  Nova.CodeDOMNamedObjectGroup

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

The NamedObjectGroup type exposes the following members.

Constructors
  NameDescription
Public methodNamedObjectGroup
Create an empty NamedObjectGroup.
Public methodNamedObjectGroup(Object)
Create a NamedObjectGroup, adding the specified object to it.
Top
Properties
  NameDescription
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 NamedObjectGroup.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Methods
  NameDescription
Public methodAdd(Object)
Add the specified named code or metadata object (INamedCodeObject or IMemberDefinition/MemberInfo), or collection of such objects to the group.
Public methodAdd(MemberInfo)
Add the specified MemberInfo to the group.
Public methodAdd(IMemberDefinition)
Add the specified IMemberDefinition to the group.
Public methodAdd(INamedCodeObject)
Add the specified INamedCodeObject 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 methodAddRange
Add a collection of objects to the group.
Public methodClear
Remove all items from the group.
Public methodContains
Check if the group contains the specified code or metadata object (INamedCodeObject or IMemberDefinition).
Public methodCopyTo
Copy the objects in the group 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 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 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 NamedObjectDictionary to hold groups of child INamedCodeObjects and/or IMemberDefinitions/MemberInfos with the same name, and also by various Get() and Find() type methods to return collections of INamedCodeObjects and/or IMemberDefinitions/MemberInfos with the same name.
See Also