Interface IValueParser
Any class implementing this interface will be added to the main parser automatically using introspection The class must have an empty consturctor as it will be called before adding the Parse method to the additionnal parsers
Namespace: Xareus.Scenarios
Assembly: Xareus.Scenarios.dll
Syntax
[Obsolete("EventContext must now be IContext. Consider dropping this interface and using a custom IContext implementation instead")]
public interface IValueParser
Methods
ParseEventContext(object, object)
Converts a value to an object. This delegate is met by the IValueParser implementations
Declaration
object ParseEventContext(object value, object eventContext)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value to convert by parsing it |
object | eventContext |
Returns
Type | Description |
---|---|
object | The conversion if it succeeded, null if it failed |