Table of Contents

Get Method

Definition

Namespace
Savvyio
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/MetadataFactory.cs

Get<T>(T, string)

Gets the value associates to the request from the item with the specified key.

public static object Get<T>(T request, string key) where T : IMetadata

Parameters

request T

The IMetadata to extend.

key string

The key of the element to retrieve.

Returns

object

A reference to the value in the request that is identified by key, if the entry exists; otherwise, null.

Type Parameters

T

The model that implements the IMetadata interface.