Skip to content

Does it support dynamic object? #4

@kooboo-jifeng

Description

@kooboo-jifeng

Hi,

I want to bind a object inherit from DynamicObject and IDictionary<string, object>. I want to use article.Title to bind the field, but it always throw a exception "CS1061: 'object' does not contain a definition for 'Title' and no extension method 'Title' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) (line 468)".

I change to use the dictionary syntax "article["Title"]", but it throws "
CS0021: Cannot apply indexing with [] to an expression of type 'object' (line 468)
"
How can I to fix it?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions