Show / Hide Table of Contents

Interface IExpando

Contract for dynamic objects allowing getting or setting properties by their name through an indexer.

Inherited Members
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
IIndexable.Item[String]
Namespace: Kephas.Dynamic
Assembly: Kephas.Core.dll
Syntax
public interface IExpando : IDynamicMetaObjectProvider, IIndexable

Methods

| Improve this Doc View Source

HasDynamicMember(String)

Indicates whether the memberName is defined in the expando.

Declaration
bool HasDynamicMember(string memberName)
Parameters
Type Name Description
System.String memberName

Name of the member.

Returns
Type Description
System.Boolean

True if defined, false if not.

| Improve this Doc View Source

ToDictionary(Func<String, String>, Func<Object, Object>)

Converts the expando to a dictionary having as keys the property names and as values the respective properties' values.

Declaration
IDictionary<string, object> ToDictionary(Func<string, string> keyFunc = null, Func<object, object> valueFunc = null)
Parameters
Type Name Description
System.Func<System.String, System.String> keyFunc

The key transformation function (optional).

System.Func<System.Object, System.Object> valueFunc

The value transformation function (optional).

Returns
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>

A dictionary of property values with their associated names.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX