FleetingCustomData

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

Properties

BagContents

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

Count

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

Methods

Add

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

Get<T>

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

Set

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