Class SimpleDictionary
The simple dictionary is the most simple context type adn seems to be performant enough in most cases
Inheritance
SimpleDictionary
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
public class SimpleDictionary : Dictionary<string, object>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IContext, ITypeDescriptorContext, IServiceProvider
Constructors
SimpleDictionary()
Declaration
public SimpleDictionary()
SimpleDictionary(SerializationInfo, StreamingContext)
Declaration
protected SimpleDictionary(SerializationInfo info, StreamingContext context)
Parameters
SimpleDictionary(string, object)
Create dictionary woth one entry
Declaration
public SimpleDictionary(string key, object value)
Parameters
Properties
Container
Declaration
public virtual IContainer Container { get; }
Property Value
Instance
Gets the object that is connected with this type descriptor request.
Declaration
public virtual object Instance { get; }
Property Value
Type |
Description |
object |
The object that invokes the method on the TypeDescriptor; otherwise, null if there is no object responsible for the call.
|
PropertyDescriptor
Declaration
public virtual PropertyDescriptor PropertyDescriptor { get; }
Property Value
Methods
GetPaths()
Declaration
public virtual IEnumerable<string> GetPaths()
Returns
GetService(Type)
Gets the service object of the specified type.
Declaration
public virtual object GetService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
An object that specifies the type of service object to get.
|
Returns
Type |
Description |
object |
A service object of type serviceType .
-or-
null if there is no service object of type serviceType .
|
GetValue(string)
Declaration
public virtual object GetValue(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
GetValueOrDefault(string, object)
Declaration
public virtual object GetValueOrDefault(string path, object defaultValue = null)
Parameters
Returns
HasPath(string)
Declaration
public virtual bool HasPath(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
OnComponentChanged()
Declaration
public virtual void OnComponentChanged()
OnComponentChanging()
Declaration
public virtual bool OnComponentChanging()
Returns
Type |
Description |
bool |
true if this object can be changed; otherwise, false.
|
SetValue(string, object)
Declaration
public virtual void SetValue(string path, object value)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Union(string, IContext)
Declaration
public void Union(string path, IContext other)
Parameters
Union(IContext, bool)
Declaration
public void Union(IContext other, bool overrideDuplicates = true)
Parameters
Type |
Name |
Description |
IContext |
other |
|
bool |
overrideDuplicates |
|
Implements