Interface IIndexable
Makes an object indexable by a key.
Namespace: Kephas.Dynamic
Assembly: Kephas.Core.dll
Syntax
public interface IIndexable
Properties
| Improve this Doc View SourceItem[String]
Convenience method that provides a string Indexer to the Properties collection AND the strongly typed properties of the object by name. // dynamic exp["Address"] = "112 nowhere lane"; // strong var name = exp["StronglyTypedProperty"] as string;.
Declaration
object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Property Value
Type | Description |
---|---|
System.Object | The System.Object identified by the key. |