ValidateValueMetadata<T> Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
A metadata to allow validation/coercision of a value before storing the value into the PropertyContainer.
Derived from ValidateValueMetadata<T>:
public class ValidateValueMetadata<T> : ValidateValueMetadata
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Constructors | ||
ValidateValueMetadata(ValidateValueCallback<T>) | Initializes a new instance of the ValidateValueMetadata<T> class. |
|
Properties | ||
ValidateValueCallback | Gets the validate value callback. |
|
Methods | ||
Validate(ref Object) |
Constructors
ValidateValueMetadata(ValidateValueCallback<T>)
Initializes a new instance of the ValidateValueMetadata<T> class.
public ValidateValueMetadata(ValidateValueCallback<T> validateValueCallback)
Parameters
Type | Name | Description |
---|---|---|
ValidateValueCallback<T> | validateValueCallback | The validate value callback. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | validateValueCallback |
Properties
ValidateValueCallback
Gets the validate value callback.
public ValidateValueCallback<T> ValidateValueCallback { get; }
Property Value
Type | Description |
---|---|
ValidateValueCallback<T> | The validate value callback. |
Methods
Validate(ref Object)
public override void Validate(ref object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |