DynamicYamlMapping Class
Namespace: Stride.Core.Yaml
Assembly: Stride.Core.Assets.dll
Dynamic version of Stride.Core.Yaml.Serialization.YamlMappingNode.
System.Object →
System.Dynamic.DynamicObject →
DynamicYamlObject →
DynamicYamlMapping
Derived from DynamicYamlMapping:
public class DynamicYamlMapping : DynamicYamlObject, IDynamicMetaObjectProvider, IDynamicYamlNode, IEnumerable
Name |
Description |
Constructors
|
|
DynamicYamlMapping(YamlMappingNode) |
|
Properties
|
|
Node |
|
Methods
|
|
AddChild(Object, Object) |
|
|
ContainsChild(Object) |
|
|
GetOverride(String) |
Gets the override for the specified member.
|
|
IndexOf(Object) |
|
|
MoveChild(Object, Int32) |
|
|
RemoveChild(Object) |
|
|
RemoveOverride(String) |
Removes an override information from the specified member.
|
|
RenameChild(Object, Object) |
Renames a property to a new name while keeping all overrides and key mappings
|
|
SetOverride(String, OverrideType) |
Sets the override type for the specified member.
|
|
TransferChild(Object, Object, Object) |
Transfers ownership of a property to another parent object and removes it from the current one
|
|
TryConvert(ConvertBinder, out Object) |
|
|
TryGetIndex(GetIndexBinder, Object[], out Object) |
|
|
TryGetMember(GetMemberBinder, out Object) |
|
|
TrySetIndex(SetIndexBinder, Object[], Object) |
|
|
TrySetMember(SetMemberBinder, Object) |
|
Explicit Interface Implementations
|
|
IDynamicYamlNode.Node |
|
|
IEnumerable.GetEnumerator() |
|
|
Improve this Doc
View Source
Constructors
DynamicYamlMapping(YamlMappingNode)
public DynamicYamlMapping(YamlMappingNode node)
Parameters
Type |
Name |
Description |
Stride.Core.Yaml.Serialization.YamlMappingNode |
node |
|
|
Improve this Doc
View Source
Properties
Node
public YamlMappingNode Node { get; }
Property Value
Type |
Description |
Stride.Core.Yaml.Serialization.YamlMappingNode |
|
|
Improve this Doc
View Source
Methods
AddChild(Object, Object)
public void AddChild(object key, object value)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
System.Object |
value |
|
ContainsChild(Object)
public bool ContainsChild(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Type |
Description |
System.Boolean |
|
GetOverride(String)
Gets the override for the specified member.
public OverrideType GetOverride(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
The member name to get the override
|
Returns
IndexOf(Object)
public int IndexOf(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Type |
Description |
System.Int32 |
|
MoveChild(Object, Int32)
public void MoveChild(object key, int movePosition)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
System.Int32 |
movePosition |
|
RemoveChild(Object)
public void RemoveChild(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
RemoveOverride(String)
Removes an override information from the specified member.
public void RemoveOverride(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
The member name
|
RenameChild(Object, Object)
Renames a property to a new name while keeping all overrides and key mappings
public void RenameChild(object oldKey, object newKey)
Parameters
Type |
Name |
Description |
System.Object |
oldKey |
Old property name
|
System.Object |
newKey |
New property name
|
SetOverride(String, OverrideType)
Sets the override type for the specified member.
public void SetOverride(string key, OverrideType type)
Parameters
Type |
Name |
Description |
System.String |
key |
The member name to setup an override
|
OverrideType |
type |
Type of the override
|
TransferChild(Object, Object, Object)
Transfers ownership of a property to another parent object and removes it from the current one
public void TransferChild(object oldKey, object newParent, object newKey)
Parameters
Type |
Name |
Description |
System.Object |
oldKey |
Old property name
|
System.Object |
newParent |
New owner for the property
|
System.Object |
newKey |
New property name
|
TryConvert(ConvertBinder, out Object)
public override bool TryConvert(ConvertBinder binder, out object result)
Parameters
Type |
Name |
Description |
System.Dynamic.ConvertBinder |
binder |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
TryGetIndex(GetIndexBinder, Object[], out Object)
public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)
Parameters
Type |
Name |
Description |
System.Dynamic.GetIndexBinder |
binder |
|
System.Object[] |
indexes |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
TryGetMember(GetMemberBinder, out Object)
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
Type |
Name |
Description |
System.Dynamic.GetMemberBinder |
binder |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Dynamic.DynamicObject.TryGetMember(System.Dynamic.GetMemberBinder, System.Object)
TrySetIndex(SetIndexBinder, Object[], Object)
public override bool TrySetIndex(SetIndexBinder binder, object[] indexes, object value)
Parameters
Type |
Name |
Description |
System.Dynamic.SetIndexBinder |
binder |
|
System.Object[] |
indexes |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
TrySetMember(SetMemberBinder, Object)
public override bool TrySetMember(SetMemberBinder binder, object value)
Parameters
Type |
Name |
Description |
System.Dynamic.SetMemberBinder |
binder |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Dynamic.DynamicObject.TrySetMember(System.Dynamic.SetMemberBinder, System.Object)
|
Improve this Doc
View Source
Explicit Interface Implementations
IDynamicYamlNode.Node
YamlNode IDynamicYamlNode.Node { get; }
Returns
Type |
Description |
Stride.Core.Yaml.Serialization.YamlNode |
|
IEnumerable.GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryInvokeMember(System.Dynamic.InvokeMemberBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.GetDynamicMemberNames()
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
Extension Methods