Class ErrorComponent
Class that represents a component that couldn't be deserialized.
Inheritance
ErrorComponent
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public class ErrorComponent : Component, IDependencyObject, ILoadable
Constructors
ErrorComponent()
Initializes a new instance of the ErrorComponent class.
Declaration
public ErrorComponent()
Properties
OldType
Gets or sets the old type-qualified name.
Declaration
public string OldType { get; set; }
Property Value
Type | Description |
---|---|
string |
Properties
Gets or sets the properties of the error component.
Declaration
public Dictionary<string, object> Properties { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |
ReaderVersion
Gets the reader version of the component.
Declaration
public Version ReaderVersion { get; }
Property Value
Type | Description |
---|---|
Version |
SerializerException
Gets or sets the original serializer exception.
Declaration
public Exception SerializerException { get; set; }
Property Value
Type | Description |
---|---|
Exception |
Methods
ContinueDeserializingUntilNextMappingEnd(EventReader)
Continues the serialization of the component until the mapping is complete.
Declaration
public void ContinueDeserializingUntilNextMappingEnd(EventReader reader)
Parameters
Type | Name | Description |
---|---|---|
EventReader | reader | The event reader for the serializer. |
Dispose()
Disposes of this component.
Declaration
public void Dispose()
FillData(EventReader)
Fills this component with the serialized data.
Declaration
public void FillData(EventReader reader)
Parameters
Type | Name | Description |
---|---|---|
EventReader | reader | The event reader of the serializer. |
Invalidate(ILoadable)
Invalidates this instance and raises the Invalidated event with the new ILoadable instance.
Declaration
public void Invalidate(ILoadable newInstance)
Parameters
Type | Name | Description |
---|---|---|
ILoadable | newInstance | The new ILoadable instance. |
ReleaseUnusedMemory()
Releases unused memory.
Declaration
public void ReleaseUnusedMemory()
Events
Invalidated
Occurs when this instance is invalidated and all references must be reloaded.
Declaration
public event EventHandler<ILoadable> Invalidated
Event Type
Type | Description |
---|---|
EventHandler<ILoadable> |