ObjectInvalidationMetadata<T> Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Metadata used to invalidate an object state after a property value modification.
Derived from ObjectInvalidationMetadata<T>:
public class ObjectInvalidationMetadata<T> : ObjectInvalidationMetadata
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Constructors | ||
ObjectInvalidationMetadata(ObjectInvalidationCallback<T>) | Initializes a new instance of the ObjectInvalidationMetadata<T> class. |
|
ObjectInvalidationMetadata(ObjectInvalidationRefCallback<T>) | Initializes a new instance of the ObjectInvalidationMetadata<T> class. |
|
Methods | ||
Invalidate(Object, PropertyKey, Object) | ||
Invalidate(Object, PropertyKey<T>, ref T) |
Constructors
ObjectInvalidationMetadata(ObjectInvalidationCallback<T>)
Initializes a new instance of the ObjectInvalidationMetadata<T> class.
public ObjectInvalidationMetadata(ObjectInvalidationCallback<T> invalidationCallback)
Parameters
Type | Name | Description |
---|---|---|
ObjectInvalidationCallback<T> | invalidationCallback | The object invalidation callback. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Parameter |
ObjectInvalidationMetadata(ObjectInvalidationRefCallback<T>)
Initializes a new instance of the ObjectInvalidationMetadata<T> class.
public ObjectInvalidationMetadata(ObjectInvalidationRefCallback<T> invalidationRefCallback)
Parameters
Type | Name | Description |
---|---|---|
ObjectInvalidationRefCallback<T> | invalidationRefCallback | The object invalidation callback. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Parameter |
Methods
Invalidate(Object, PropertyKey, Object)
public override void Invalidate(object propertyOwner, PropertyKey propertyKey, object propertyOldValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | propertyOwner | |
PropertyKey | propertyKey | |
System.Object | propertyOldValue |
Overrides
Invalidate(Object, PropertyKey<T>, ref T)
public void Invalidate(object propertyOwner, PropertyKey<T> propertyKey, ref T propertyOldValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | propertyOwner | |
PropertyKey<T> | propertyKey | |
T | propertyOldValue |