CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Core.ContextDictionary Class Reference

Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter(). More...

Inheritance diagram for Csla.Core.ContextDictionary:
Csla.Core.IContextDictionary Csla.Serialization.Mobile.IMobileObject

Public Member Functions

object? GetValueOrNull (string key)
 Retrieves the value associated with the specified key from the local context.
Parameters
keyThe key of the value to get.
Returns
The value associated with the specified key, or null if the key does not exist.
Exceptions
ArgumentNullExceptionkey is null.

void Add (object key, object? value)
void Remove (object key)
Public Member Functions inherited from Csla.Core.IContextDictionary
bool TryAdd (object key, object? value)
bool ContainsKey (object key)
bool TryRemove (object key, out object? value)
bool TryGetValue (object key, out object? value)
bool TryUpdate (object key, object? newValue, object? comparisonValue)
object? GetOrAdd (object key, Func< object?, object?> valueFactory)
object? GetOrAdd (object key, object? value)
object? AddOrUpdate (object key, Func< object?, object?> addValueFactory, Func< object?, object?, object?> updateValueFactory)
object? AddOrUpdate (object key, object? addValue, Func< object?, object?, object?> updateValueFactory)

Properties

bool IsReadOnly [get]
bool IsFixedSize [get]
object SyncRoot [get]
bool IsSynchronized [get]

Detailed Description

Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().

Member Function Documentation

◆ Add()

void Csla.Core.ContextDictionary.Add ( object key,
object? value )
inline

◆ GetValueOrNull()

object? Csla.Core.ContextDictionary.GetValueOrNull ( string key)
inline

Retrieves the value associated with the specified key from the local context.

Parameters
keyThe key of the value to get.
Returns
The value associated with the specified key, or null if the key does not exist.
Exceptions
ArgumentNullExceptionkey is null.

Implements Csla.Core.IContextDictionary.

◆ Remove()

void Csla.Core.ContextDictionary.Remove ( object key)
inline

Property Documentation

◆ IsFixedSize

bool Csla.Core.ContextDictionary.IsFixedSize
get

◆ IsReadOnly

bool Csla.Core.ContextDictionary.IsReadOnly
get

◆ IsSynchronized

bool Csla.Core.ContextDictionary.IsSynchronized
get

◆ SyncRoot

object Csla.Core.ContextDictionary.SyncRoot
get


The documentation for this class was generated from the following file: