Class DynamicYamlScalar
Dynamic version of Stride.Core.Yaml.Serialization.YamlScalarNode.
public class DynamicYamlScalar : DynamicYamlObject, IDynamicMetaObjectProvider, IDynamicYamlNode- Inheritance
- 
      objectDynamicYamlScalar
- Implements
- Inherited Members
Constructors
DynamicYamlScalar(YamlScalarNode)
public DynamicYamlScalar(YamlScalarNode node)Parameters
- nodeYamlScalarNode
Properties
Node
public YamlScalarNode Node { get; }Property Value
- YamlScalarNode
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
- A string that represents the current object. 
TryBinaryOperation(BinaryOperationBinder, object, out object?)
Provides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.
public override bool TryBinaryOperation(BinaryOperationBinder binder, object arg, out object? result)Parameters
- binderBinaryOperationBinder
- Provides information about the binary operation. The - binder.Operationproperty returns an ExpressionType object. For example, for the- sum = first + secondstatement, where- firstand- secondare derived from the- DynamicObjectclass,- binder.Operationreturns- ExpressionType.Add.
- argobject
- The right operand for the binary operation. For example, for the - sum = first + secondstatement, where- firstand- secondare derived from the- DynamicObjectclass,- argis equal to- second.
- resultobject
- The result of the binary operation. 
Returns
- bool
- true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.) 
TryConvert(ConvertBinder, out object)
Provides implementation for type conversion operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another.
public override bool TryConvert(ConvertBinder binder, out object result)Parameters
- binderConvertBinder
- Provides information about the conversion operation. The - binder.Typeproperty provides the type to which the object must be converted. For example, for the statement- (String)sampleObjectin C# (- CType(sampleObject, Type)in Visual Basic), where- sampleObjectis an instance of the class derived from the DynamicObject class,- binder.Typereturns the string type. The- binder.Explicitproperty provides information about the kind of conversion that occurs. It returns true for explicit conversion and false for implicit conversion.
- resultobject
- The result of the type conversion operation.