Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7882545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:18:40+00:00 2026-06-03T04:18:40+00:00

An object can provide its binding semantics by implementing IDynamicMetaObject Provider—or more easily by

  • 0

An object can provide its binding semantics by implementing
IDynamicMetaObject Provider—or more easily by subclassing
DynamicObject, which provides a default implementation of this
interface.

source

I never implemented this interface nor class and always been able to execute things dynamically:

public class aa
    {
        public void bbb()
        {  }
    }

dynamic a = new aa().bbb();

so what do they mean by this quote ?

im trying to understand when should i need to use IDynamicMetaObject or the DynamicObject inheritance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:18:41+00:00Added an answer on June 3, 2026 at 4:18 am

    The dynamic keyword causes references to an object to be late-bound and only resolved at runtime. Usually, the reason for this is because you are using an IDynamicMetaObjectProvider implementer, which allows your code to decide how to treat the run-time property resolution. That is, you may want to add and remove properties at runtime (typically implemented as a dictionary, like ExpandoObject).

    What your example code is doing is just preventing compile-type type checking. In fact it’s worse than doing nothing, because if you wrote code that accessed a nonexistent property or method of your class, it would still compile, but of course crash at runtime. I can’t think of many good reasons to refer to concrete classes with dynamic (expect for squishy typecasting or duck-typing, but we usually use interfaces for stuff like this in C#!)

    Example implementation of a dynamic object that inherits DynamicObject from one of my own projects:

    https://github.com/jamietre/IQObjectMapper/blob/master/source/IQObjectMapper/IQDynamicObject.cs

    (It makes one call to a factory method that returns a new dictionary with options, all you need to do to make this non-dependent is change the constructor from:

    InnerDict = ObjectMapper.MapperCache.GetDictionary<object>(Options);
    

    to:

    InnerDict = new Dictionary<string,object>();
    

    and get rid of a couple conditons that check options

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two models, Image and Tag . Each Image object can have more
As I understood , The property grid is given an object which it can
Suppose you have a few, quite large (100k+) objects in available and can provide
Let us say my domain object can contain a bunch of objects like this:
I'm trying to check if an object can cast to a certain type using
What is maximum size of data that an object can hold on the iPhone?
In ReportLab, Drawing object can be written into different renderers, e.g d = shapes.Drawing(400,
I'm always tempted to extend the Sprite class just so my object can be
In Flex ActionScript, a new object can be instantiated via the parameterless constructor with
In jQuery, a DOM node or jQuery object can be passed as an attribute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.