Struct WorkMatch.NameValuePair
Represents name/value tuple
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Wave
Assembly: Azos.Wave.dll
Syntax
public struct NameValuePair
Constructors
NameValuePair(String, String)
Declaration
public NameValuePair(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | value |
Fields
Name
Declaration
public readonly string Name
Field Value
Type | Description |
---|---|
System.String |
Value
Declaration
public readonly string Value
Field Value
Type | Description |
---|---|
System.String |
Methods
ParseList(String)
Converts a string with a list of separated pairs into a list i.e. "a=1;b=2"
Declaration
public static List<WorkMatch.NameValuePair> ParseList(string list)
Parameters
Type | Name | Description |
---|---|---|
System.String | list |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<WorkMatch.NameValuePair> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
ToStringList(IEnumerable<WorkMatch.NameValuePair>)
Joins NameValuePair sequence into a string list i.e. "a=1;b=2"
Declaration
public static string ToStringList(IEnumerable<WorkMatch.NameValuePair> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<WorkMatch.NameValuePair> | list |
Returns
Type | Description |
---|---|
System.String |