Class ExpandoObjectExtensions
- Namespace
- Mithril.Core.Abstractions.Extensions
- Assembly
- Mithril.Core.Abstractions.dll
ExpandoObject extension methods
public static class ExpandoObjectExtensions
- Inheritance
-
ExpandoObjectExtensions
- Inherited Members
Methods
ConvertExpando<TEntity>(ExpandoObject?)
Converts the ExpandoObject to the type specified.
public static TEntity? ConvertExpando<TEntity>(this ExpandoObject? value)
Parameters
value
ExpandoObjectThe value.
Returns
- TEntity
The view model equivalent.
Type Parameters
TEntity
The type of the entity.
ConvertToExpando(IDictionary<string, object?>?)
Converts to expando.
public static ExpandoObject? ConvertToExpando(this IDictionary<string, object?>? value)
Parameters
value
IDictionary<string, object>The value.
Returns
- ExpandoObject
The resulting object
ConvertToExpando(object?)
Converts the object to an expando.
public static ExpandoObject? ConvertToExpando(this object? value)
Parameters
value
objectThe value.
Returns
- ExpandoObject
The resulting object