CollectionIdGenerator Class
Namespace: Stride.Core.AssetsAssembly: 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.
System.Object → Stride.Core.Reflection.DataVisitorBase →
CollectionIdGenerator
Derived from CollectionIdGenerator:
public class CollectionIdGenerator : DataVisitorBase, IDataVisitor
Methods
CanVisit(Object)
protected override bool CanVisit(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Stride.Core.Reflection.DataVisitorBase.CanVisit(System.Object)
VisitArray(Array, ArrayDescriptor)
public override void VisitArray(Array array, ArrayDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | |
Stride.Core.Reflection.ArrayDescriptor | descriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitArray(System.Array, Stride.Core.Reflection.ArrayDescriptor)
VisitCollection(IEnumerable, CollectionDescriptor)
public override void VisitCollection(IEnumerable collection, CollectionDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | collection | |
Stride.Core.Reflection.CollectionDescriptor | descriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitCollection(System.Collections.IEnumerable, Stride.Core.Reflection.CollectionDescriptor)
VisitDictionary(Object, DictionaryDescriptor)
public override void VisitDictionary(object dictionary, DictionaryDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dictionary | |
Stride.Core.Reflection.DictionaryDescriptor | descriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitDictionary(System.Object, Stride.Core.Reflection.DictionaryDescriptor)
VisitObject(Object, ObjectDescriptor, Boolean)
public override void VisitObject(object obj, ObjectDescriptor descriptor, bool visitMembers)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | |
Stride.Core.Reflection.ObjectDescriptor | descriptor | |
System.Boolean | visitMembers |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitObject(System.Object, Stride.Core.Reflection.ObjectDescriptor, System.Boolean)
VisitObjectMember(Object, ObjectDescriptor, IMemberDescriptor, Object)
public override void VisitObjectMember(object container, ObjectDescriptor containerDescriptor, IMemberDescriptor member, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | container | |
Stride.Core.Reflection.ObjectDescriptor | containerDescriptor | |
Stride.Core.Reflection.IMemberDescriptor | member | |
System.Object | value |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitObjectMember(System.Object, Stride.Core.Reflection.ObjectDescriptor, Stride.Core.Reflection.IMemberDescriptor, System.Object)
Inherited Members
Stride.Core.Reflection.DataVisitorBase.TypeDescriptorFactory
Stride.Core.Reflection.DataVisitorBase.CustomVisitors
Stride.Core.Reflection.DataVisitorBase.CurrentPath
Stride.Core.Reflection.DataVisitorBase.AttributeRegistry
Stride.Core.Reflection.DataVisitorBase.Reset()
Stride.Core.Reflection.DataVisitorBase.Visit(System.Object)
Stride.Core.Reflection.DataVisitorBase.Visit(System.Object, Stride.Core.Reflection.ITypeDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitNull()
Stride.Core.Reflection.DataVisitorBase.VisitPrimitive(System.Object, Stride.Core.Reflection.PrimitiveDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitArrayItem(System.Array, Stride.Core.Reflection.ArrayDescriptor, System.Int32, System.Object, Stride.Core.Reflection.ITypeDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitCollectionItem(System.Collections.IEnumerable, Stride.Core.Reflection.CollectionDescriptor, System.Int32, System.Object, Stride.Core.Reflection.ITypeDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitDictionaryKeyValue(System.Object, Stride.Core.Reflection.DictionaryDescriptor, System.Object, Stride.Core.Reflection.ITypeDescriptor, System.Object, Stride.Core.Reflection.ITypeDescriptor)