Table of Contents

Method TryGetValue

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

TryGetValue(string, out object?)

Gets the value of the first column with a name.

public bool TryGetValue(string key, out object? value)

Parameters

key string

The name, found exactly, else ignoring case.

value object

The value; null for a database NULL or when no column has the name.

Returns

bool

true if a column has the name (a NULL cell included); otherwise, false.

Exceptions

ArgumentNullException

key is null.