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

  • Home
  • SEARCH
  • 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 4058502
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:05:15+00:00 2026-05-20T15:05:15+00:00

I have a a dynamic value (implementation of IDynamicMetaObjectProvider) that I’d like to call

  • 0

I have a a dynamic value (implementation of IDynamicMetaObjectProvider) that I’d like to call methods and properties on.

Examples I have found so far of invoking members on a dynamic value use types out of Microsoft.CSharp.dll, e.g.

IDynamicMetaObjectProvider x = GetDynamicValue();
CallSite<Func<CallSite, object, object, object>> site = CallSite<Func<CallSite, object, object, object>>.Create(
            Binder.SetMember(
                Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags.None,
                "Foo",
                null,
                new[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }
            )
        );
site.Target(site, x, 42);

I want to be able to invoke a IDynamicMetaObjectProvider’s members without using Microsoft.CSharp.dll. Note that I am not talking about using the C# dynamic keyword on anything related to C# but using a IDynamicMetaObjectProvider directly.

Also note that using Reflection won’t work. Reflection bypasses dynamic call binding and simply performs Reflection on the underlying type. I need a technique that works with any implementation of IDynamicMetaObjectProvider.

  • 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-05-20T15:05:16+00:00Added an answer on May 20, 2026 at 3:05 pm

    You would have to implement your own CallSiteBinder as there are no language agnostic CallSiteBinders. Basically the idea is that the Binder handles the subtle differences between info provided from your calling languages to pick the correct member to bind to on any object regardless of language.

    Since it’s not like a CSharp Binder can’t bind to an IronPython object, the flexibilty on using different binders, as per library consumers language, depends on how much flexibility you are providing via your library. Given the above example if you weren’t allowing the the library consumers to change any binder parameters then you would be fine using the CSharp Binder if you did offer more maybe it would be useful to offer switching out the binder via dependency injection or overloaded method.

    However, I’m thinking that CSharpBinder should be fine if you want to pass just some of the binder parameters because the csharp binder gives you pretty good flexibility binding wise (with the one exception of not being about to change bindings to be case insensitive), and it’s really the best choice for binders in a generic library, since it’s the only language binder included standard in the .net 4.0 installation and Mono 2.8 installation.

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

Sidebar

Related Questions

I have a dynamic query that returns around 590,000 records. It runs successfully the
I have a Dynamic Data Entities Web Application that uses a database with GUIDs
I have a dynamic class that serves as a storage container for configuration settings.
I have few dynamic dropdowns that the created on change of a dropdownlist, on
I have a little web app that uses the Facebook like widget. This page
I have X number of RadioButtons (Silverlight). Normally this value is between 2-5. Call
How can I have a dynamic variable setting the amount of rows to return
When C# 4.0 comes out and we have the dynamic keyword as described in
We're looking at doing a MOSS 2007 site which will have a fairly dynamic
(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When

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.