Table of Contents

Method IsSet

Namespace
Sisk.Core.Entity
Assembly
Sisk.Core.dll

IsSet<T>()

Determines whether the specified T singleton is defined in this context.

public bool IsSet<T>() where T : notnull

Returns

bool

Type Parameters

T

The singleton type.

IsSet<T>(out T?)

Determines whether the specified T singleton is defined in this context and tries to output it.

public bool IsSet<T>(out T? value) where T : notnull

Parameters

value T

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

bool

True if the object is find with the specified key; otherwise, false.

Type Parameters

T

The singleton type.