Table of Contents

SetMemberType Method

Definition

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

SetMemberType<T>(T, Type)

Assigns a new type to the request.

public static T SetMemberType<T>(this T request, Type type) where T : IMetadata

Parameters

request T

The IMetadata to extend.

type Type

The type of the model.

Returns

T

A reference to request after the operation has completed.

Type Parameters

T

The model that implements the IMetadata interface.

Remarks

The type is converted to its equivalent string representation (fully qualified name of the type, including its namespace, comma delimited with the simple name of the assembly).