Class CollectionIdGenerator
A visitor that will generate a CollectionItemIdentifiers collection for each collection or dictionary of the visited object, and attach it to the related collection.
public class CollectionIdGenerator : DataVisitorBase, IDataVisitor
- Inheritance
-
DataVisitorBaseCollectionIdGenerator
- Implements
-
IDataVisitor
- Inherited Members
-
DataVisitorBase.TypeDescriptorFactoryDataVisitorBase.CustomVisitorsDataVisitorBase.CurrentPathDataVisitorBase.AttributeRegistryDataVisitorBase.Reset()DataVisitorBase.VisitNull()
Methods
CanVisit(object)
protected override bool CanVisit(object obj)
Parameters
obj
object
Returns
VisitArray(Array, ArrayDescriptor)
Visits an array.
public override void VisitArray(Array array, ArrayDescriptor descriptor)
Parameters
array
ArrayThe array.
descriptor
ArrayDescriptorThe descriptor.
VisitCollection(IEnumerable, CollectionDescriptor)
Visits a collection.
public override void VisitCollection(IEnumerable collection, CollectionDescriptor descriptor)
Parameters
collection
IEnumerableThe collection.
descriptor
CollectionDescriptorThe descriptor.
VisitDictionary(object, DictionaryDescriptor)
Visits a dictionary.
public override void VisitDictionary(object dictionary, DictionaryDescriptor descriptor)
Parameters
dictionary
objectThe dictionary.
descriptor
DictionaryDescriptorThe descriptor.
VisitObject(object, ObjectDescriptor, bool)
Visits an object (either a class or a struct)
public override void VisitObject(object obj, ObjectDescriptor descriptor, bool visitMembers)
Parameters
VisitObjectMember(object, ObjectDescriptor, IMemberDescriptor, object)
Visits an object member.
public override void VisitObjectMember(object container, ObjectDescriptor containerDescriptor, IMemberDescriptor member, object value)
Parameters
container
objectThe container.
containerDescriptor
ObjectDescriptorThe container descriptor.
member
IMemberDescriptorThe member.
value
objectThe value.
VisitSet(IEnumerable, SetDescriptor)
Visits a set.
public override void VisitSet(IEnumerable set, SetDescriptor descriptor)
Parameters
set
IEnumerableThe set.
descriptor
SetDescriptorThe descriptor.