DelegateDefaultValueMetadata<T> Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Specifies a delegate to fetch the default value of an PropertyKey.
System.Object → PropertyKeyMetadata → DefaultValueMetadata → DefaultValueMetadata<T> →
DelegateDefaultValueMetadata<T>
Derived from DelegateDefaultValueMetadata<T>:
public class DelegateDefaultValueMetadata<T> : DefaultValueMetadata<T>
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Constructors | ||
DelegateDefaultValueMetadata(DelegateDefaultValueMetadata<T>.DefaultValueCallback) | Initializes a new instance of the DelegateDefaultValueMetadata<T> class. |
|
Properties | ||
KeepValue | ||
Methods | ||
GetDefaultValueT(ref PropertyContainer) |
Constructors
DelegateDefaultValueMetadata(DelegateDefaultValueMetadata<T>.DefaultValueCallback)
Initializes a new instance of the DelegateDefaultValueMetadata<T> class.
public DelegateDefaultValueMetadata(DelegateDefaultValueMetadata<T>.DefaultValueCallback callback)
Parameters
Type | Name | Description |
---|---|---|
DelegateDefaultValueMetadata.DefaultValueCallback<> | callback | The callback. |
Properties
KeepValue
public override bool KeepValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceMethods
GetDefaultValueT(ref PropertyContainer)
public override T GetDefaultValueT(ref PropertyContainer obj)
Parameters
Type | Name | Description |
---|---|---|
PropertyContainer | obj |
Returns
Type | Description |
---|---|
T |
Overrides
Stride.Core.DefaultValueMetadata<T>.GetDefaultValueT(Stride.Core.PropertyContainer)