Class CommonSettings
Implements
System.Collections.Generic.ICollection<IVariable>
System.Collections.Generic.IEnumerable<IVariable>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syn.Bot.Common
Assembly: Syn.Bot.dll
Syntax
public class CommonSettings : Settings, ICollection<IVariable>, IEnumerable<IVariable>, IEnumerable
Properties
DefaultValue
Declaration
public string DefaultValue { get; }
Property Value
Type | Description |
---|---|
System.String |
UndefinedValue
Declaration
public string UndefinedValue { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetDocument()
Declaration
public XDocument GetDocument()
Returns
Type | Description |
---|---|
System.Xml.Linq.XDocument |
GetValue(String)
Declaration
public override string GetValue(string variableName)
Parameters
Type | Name | Description |
---|---|---|
System.String | variableName |
Returns
Type | Description |
---|---|
System.String |
Overrides
Load(XDocument)
Declaration
public void Load(XDocument simlDocument)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.Linq.XDocument | simlDocument |
Load(XElement)
Declaration
public void Load(XElement settingsElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.Linq.XElement | settingsElement |
RemoveValueWhere(String, Predicate<String>)
Declaration
public int RemoveValueWhere(string variableName, Predicate<string> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.String | variableName | |
System.Predicate<System.String> | predicate |
Returns
Type | Description |
---|---|
System.Int32 |
RemoveWhere(Predicate<IVariable>)
Declaration
public int RemoveWhere(Predicate<IVariable> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Predicate<IVariable> | predicate |
Returns
Type | Description |
---|---|
System.Int32 |
RemoveWhere(Predicate<String>)
Declaration
public int RemoveWhere(Predicate<string> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Predicate<System.String> | predicate |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable