Class UnloadableObjectRemover
Removes objects implementing 'IYamlProxy' from the object.
public class UnloadableObjectRemover : AssetVisitorBase, IDataVisitor
- Inheritance
-
DataVisitorBaseUnloadableObjectRemover
- Implements
-
IDataVisitor
- Inherited Members
-
DataVisitorBase.TypeDescriptorFactoryDataVisitorBase.CustomVisitorsDataVisitorBase.CurrentPathDataVisitorBase.AttributeRegistryDataVisitorBase.Reset()DataVisitorBase.VisitNull()
Methods
Discover(object)
public static IReadOnlyList<UnloadableObjectRemover.UnloadableItem> Discover(object obj)
Parameters
obj
object
Returns
Run(object)
public static IReadOnlyList<UnloadableObjectRemover.UnloadableItem> Run(object obj)
Parameters
obj
object
Returns
VisitArrayItem(Array, ArrayDescriptor, int, object, ITypeDescriptor)
Visits an array item.
public override void VisitArrayItem(Array array, ArrayDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
array
ArrayThe array.
descriptor
ArrayDescriptorThe descriptor.
index
intThe index.
item
objectThe item.
itemDescriptor
ITypeDescriptorThe item descriptor.
VisitCollectionItem(IEnumerable, CollectionDescriptor, int, object, ITypeDescriptor)
Visits a collection item.
public override void VisitCollectionItem(IEnumerable collection, CollectionDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
collection
IEnumerableThe collection.
descriptor
CollectionDescriptorThe descriptor.
index
intThe index.
item
objectThe item.
itemDescriptor
ITypeDescriptorThe item descriptor.
VisitDictionaryKeyValue(object, DictionaryDescriptor, object, ITypeDescriptor, object, ITypeDescriptor)
Visits a dictionary key-value.
public override void VisitDictionaryKeyValue(object dictionary, DictionaryDescriptor descriptor, object key, ITypeDescriptor keyDescriptor, object value, ITypeDescriptor valueDescriptor)
Parameters
dictionary
objectThe dictionary.
descriptor
DictionaryDescriptorThe descriptor.
key
objectThe key.
keyDescriptor
ITypeDescriptorThe key descriptor.
value
objectThe value.
valueDescriptor
ITypeDescriptorThe value descriptor.
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.
VisitSetItem(IEnumerable, SetDescriptor, object, ITypeDescriptor)
Visits a set item.
public override void VisitSetItem(IEnumerable set, SetDescriptor descriptor, object item, ITypeDescriptor itemDescriptor)
Parameters
set
IEnumerableThe set.
descriptor
SetDescriptorThe descriptor.
item
objectThe item.
itemDescriptor
ITypeDescriptorThe item descriptor.