AssetMemberVisitorBase Class
Namespace: Stride.Core.Assets.VisitorsAssembly: Stride.Core.Assets.dll
Derived from AssetMemberVisitorBase:
public abstract class AssetMemberVisitorBase : AssetVisitorBase, IDataVisitor
Name | Description | |
---|---|---|
Properties | ||
MemberPath | Gets the Stride.Core.Reflection.MemberPath that will be checked against when visiting. |
|
Methods | ||
VisitArrayItem(Array, ArrayDescriptor, Int32, Object, ITypeDescriptor) | ||
VisitAssetMember(Object, ITypeDescriptor) | Called when |
|
VisitCollectionItem(IEnumerable, CollectionDescriptor, Int32, Object, ITypeDescriptor) | ||
VisitDictionaryKeyValue(Object, DictionaryDescriptor, Object, ITypeDescriptor, Object, ITypeDescriptor) | ||
VisitObject(Object, ObjectDescriptor, Boolean) | ||
VisitObjectMember(Object, ObjectDescriptor, IMemberDescriptor, Object) | ||
VisitPrimitive(Object, PrimitiveDescriptor) |
Properties
MemberPath
Gets the Stride.Core.Reflection.MemberPath that will be checked against when visiting.
protected MemberPath MemberPath { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.Reflection.MemberPath |
Methods
VisitArrayItem(Array, ArrayDescriptor, Int32, Object, ITypeDescriptor)
public override void VisitArrayItem(Array array, ArrayDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | |
Stride.Core.Reflection.ArrayDescriptor | descriptor | |
System.Int32 | index | |
System.Object | item | |
Stride.Core.Reflection.ITypeDescriptor | itemDescriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitArrayItem(System.Array, Stride.Core.Reflection.ArrayDescriptor, System.Int32, System.Object, Stride.Core.Reflection.ITypeDescriptor)
VisitAssetMember(Object, ITypeDescriptor)
Called when
protected abstract void VisitAssetMember(object value, ITypeDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
Stride.Core.Reflection.ITypeDescriptor | descriptor |
VisitCollectionItem(IEnumerable, CollectionDescriptor, Int32, Object, ITypeDescriptor)
public override void VisitCollectionItem(IEnumerable collection, CollectionDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | collection | |
Stride.Core.Reflection.CollectionDescriptor | descriptor | |
System.Int32 | index | |
System.Object | item | |
Stride.Core.Reflection.ITypeDescriptor | itemDescriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitCollectionItem(System.Collections.IEnumerable, Stride.Core.Reflection.CollectionDescriptor, System.Int32, System.Object, Stride.Core.Reflection.ITypeDescriptor)
VisitDictionaryKeyValue(Object, DictionaryDescriptor, Object, ITypeDescriptor, Object, ITypeDescriptor)
public override void VisitDictionaryKeyValue(object dictionary, DictionaryDescriptor descriptor, object key, ITypeDescriptor keyDescriptor, object value, ITypeDescriptor valueDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dictionary | |
Stride.Core.Reflection.DictionaryDescriptor | descriptor | |
System.Object | key | |
Stride.Core.Reflection.ITypeDescriptor | keyDescriptor | |
System.Object | value | |
Stride.Core.Reflection.ITypeDescriptor | valueDescriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitDictionaryKeyValue(System.Object, Stride.Core.Reflection.DictionaryDescriptor, System.Object, Stride.Core.Reflection.ITypeDescriptor, System.Object, Stride.Core.Reflection.ITypeDescriptor)
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)
VisitPrimitive(Object, PrimitiveDescriptor)
public override void VisitPrimitive(object primitive, PrimitiveDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Object | primitive | |
Stride.Core.Reflection.PrimitiveDescriptor | descriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitPrimitive(System.Object, Stride.Core.Reflection.PrimitiveDescriptor)
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.VisitArray(System.Array, Stride.Core.Reflection.ArrayDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitCollection(System.Collections.IEnumerable, Stride.Core.Reflection.CollectionDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitDictionary(System.Object, Stride.Core.Reflection.DictionaryDescriptor)
Stride.Core.Reflection.DataVisitorBase.CanVisit(System.Object)