Method Get
Get(String, String)
Return a string property.
Declaration
public virtual string Get(string name, string dflt)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of property. |
System.String | dflt | Default value. |
Returns
Type | Description |
---|---|
System.String | A string property. |
Get(String, Int32)
Return an
If the property contain ":", e.g. "10??5", it is interpreted as array of ints. It is extracted once, on first call to Get() it, and a by-round-value is returned.
Declaration
public virtual int Get(string name, int dflt)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of property. |
System.Int32 | dflt | Default value. |
Returns
Type | Description |
---|---|
System.Int32 | An |
Get(String, Double)
Return a double property.
If the property contain ":", e.g. "10??5", it is interpreted as array of doubles. It is extracted once, on first call to Get() it, and a by-round-value is returned.
Declaration
public virtual double Get(string name, double dflt)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of property. |
System.Double | dflt | Default value. |
Returns
Type | Description |
---|---|
System.Double | A double property. |
Get(String, Boolean)
Return a boolean property. If the property contain ":", e.g. "true.true.false", it is interpreted as array of booleans. It is extracted once, on first call to Get() it, and a by-round-value is returned.
Declaration
public virtual bool Get(string name, bool dflt)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of property. |
System.Boolean | dflt | Default value. |
Returns
Type | Description |
---|---|
System.Boolean | A |