FleetingCustomData

References
public sealed class FleetingCustomData
A threadsafe dictionary with strongly typed access for values which are never serialised.

Properties

BagContents

#
public IEnumerable<object> BagContents { get; }
Iterate over all the values in the bag.

Count

#
public int Count { get; }
Gets the number of custom values stored.

Methods

Add

#
public void Add(object value)
Add an unnamed value to the concurrent bag in this fleeting data.
value (object)

Get<T>

#
public bool Get<T>(string name, out T value)
Try and get custom data from this solution.
name (string)Name of value.
value (out T)Value, if found.
True if data exists and can be cast to the requested type.

Set

#
public void Set(string name, object value)
Assign custom data to this solution. Existing values with the same name will be summarily overwritten.
name (string)Name to associate with data.
value (object)Value to assign.