Class KaijuAgentsMatcher
Helper to allow for matching and comparing objects.
Inheritance
Namespace: KaijuSolutions.Agents
Syntax
[Serializable]
public class KaijuAgentsMatcher
Constructors
KaijuAgentsMatcher(String, KaijuAgentsMatcher.KaijuAgentsMatcherMode)
Create a matcher.
Declaration
public KaijuAgentsMatcher(string match = "", KaijuAgentsMatcher.KaijuAgentsMatcherMode mode = KaijuAgentsMatcher.KaijuAgentsMatcherMode.Equal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | match | The string to match against. |
| KaijuAgentsMatcher.KaijuAgentsMatcherMode | mode | The mode for how to compare the KaijuSolutions.Agents.KaijuAgentsMatcher.match. |
Fields
mode
The mode for how to compare the KaijuSolutions.Agents.KaijuAgentsMatcher.match value.
Declaration
public KaijuAgentsMatcher.KaijuAgentsMatcherMode mode
Field Value
| Type | Description |
|---|---|
| KaijuAgentsMatcher.KaijuAgentsMatcherMode |
Properties
Match
The string the match against.
Declaration
public string Match { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Matched(String)
Get if this is a match.
Declaration
public bool Matched(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The value to match against. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If the value matches the KaijuSolutions.Agents.KaijuAgentsMatcher.match parameter given the mode. |
Operators
Implicit(KaijuAgentsMatcher to KaijuAgentsMatcher.KaijuAgentsMatcherMode)
Implicit conversion to a KaijuAgentsMatcher.KaijuAgentsMatcherMode from the mode.
Declaration
public static implicit operator KaijuAgentsMatcher.KaijuAgentsMatcherMode(KaijuAgentsMatcher m)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsMatcher | m | The matcher. |
Returns
| Type | Description |
|---|---|
| KaijuAgentsMatcher.KaijuAgentsMatcherMode | The KaijuAgentsMatcher.KaijuAgentsMatcherMode from the mode. |
Implicit(KaijuAgentsMatcher to Nullable<KaijuAgentsMatcher.KaijuAgentsMatcherMode>)
Implicit conversion to a nullable KaijuAgentsMatcher.KaijuAgentsMatcherMode from the mode.
Declaration
public static implicit operator KaijuAgentsMatcher.KaijuAgentsMatcherMode? (KaijuAgentsMatcher m)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsMatcher | m | The matcher. |
Returns
| Type | Description |
|---|---|
| System.Nullable<KaijuAgentsMatcher.KaijuAgentsMatcherMode> | The KaijuAgentsMatcher.KaijuAgentsMatcherMode from the mode. |
Implicit(KaijuAgentsMatcher to String)
Implicit conversion to a string from the Match.
Declaration
public static implicit operator string (KaijuAgentsMatcher m)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsMatcher | m | The matcher. |
Returns
| Type | Description |
|---|---|
| System.String | The string from the Match. |