Table of Contents

Class CollectionIdGenerator

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

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
DataVisitorBase
CollectionIdGenerator
Implements
IDataVisitor
Inherited Members
DataVisitorBase.TypeDescriptorFactory
DataVisitorBase.CustomVisitors
DataVisitorBase.CurrentPath
DataVisitorBase.AttributeRegistry
DataVisitorBase.Reset()
DataVisitorBase.VisitNull()

Methods

CanVisit(object)

protected override bool CanVisit(object obj)

Parameters

obj object

Returns

bool

VisitArray(Array, ArrayDescriptor)

Visits an array.

public override void VisitArray(Array array, ArrayDescriptor descriptor)

Parameters

array Array

The array.

descriptor ArrayDescriptor

The descriptor.

VisitCollection(IEnumerable, CollectionDescriptor)

Visits a collection.

public override void VisitCollection(IEnumerable collection, CollectionDescriptor descriptor)

Parameters

collection IEnumerable

The collection.

descriptor CollectionDescriptor

The descriptor.

VisitDictionary(object, DictionaryDescriptor)

Visits a dictionary.

public override void VisitDictionary(object dictionary, DictionaryDescriptor descriptor)

Parameters

dictionary object

The dictionary.

descriptor DictionaryDescriptor

The 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

obj object

The object.

descriptor ObjectDescriptor

The descriptor.

visitMembers bool

VisitObjectMember(object, ObjectDescriptor, IMemberDescriptor, object)

Visits an object member.

public override void VisitObjectMember(object container, ObjectDescriptor containerDescriptor, IMemberDescriptor member, object value)

Parameters

container object

The container.

containerDescriptor ObjectDescriptor

The container descriptor.

member IMemberDescriptor

The member.

value object

The value.

VisitSet(IEnumerable, SetDescriptor)

Visits a set.

public override void VisitSet(IEnumerable set, SetDescriptor descriptor)

Parameters

set IEnumerable

The set.

descriptor SetDescriptor

The descriptor.