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 9229195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:30:42+00:00 2026-06-18T05:30:42+00:00

Considering the largely language-agnostic .NET Framework including class library and runtime, and the fact

  • 0

Considering the largely language-agnostic .NET Framework including class library and runtime, and the fact the DLR is supported by multiple languages, I find it odd that a subclassed System.Dynamic.DynamicObject in a C# application actually throws an Exception that’s in the CSharp namespace. I catch the following exception when trying to access a member on dynamic that doesn’t exist at runtime:

{Name = "RuntimeBinderException" FullName = "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException"}

Is the RuntimeBinderException exception specific to C# and if so, must each language implement its own binder exception? It strikes me as odd why the exception is not in a more general namespace and that makes me wonder “what’s up”?

I’m running in Debug mode in VS 2012 Express on .NET 4.5. The application was built in C#.

  • 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-18T05:30:44+00:00Added an answer on June 18, 2026 at 5:30 am

    The reason you are getting an exception in the CSharp namespace is because the DLR has determined that the dynamic object in question is a C# object, and has passed it off to the C# runtime binder for handling.

    Each language that supports the DLR would need its own implementation of this runtime binding system, and each would depend on the semantics of the language. For example, languages like JScript, which supports on-the-fly property and method creation, would probably not throw an exception on every binding failure, but set or return a new property.

    So the answer is, yes, each language that wanted to throw an exception on a DLR binding failure would have to implement it separately.

    (As another example: VB.NET’s support for dynamic objects works exactly the same as it’s existing late binding support; you would get the same errors from a DLR binding failure as you would a late-binding IDispatch failure, for example, so it didn’t need a separate exception.)

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

Sidebar

Related Questions

Considering the class model as follows: alt text http://www.forteresse.net/site/stackoverflow/classes.png/image How do you do this
Considering this part of a Java class, private List<Object> components = new ArrayList<Object>(); private
Considering that simple java code which would not work: public class Bar extends AbstractBar{
Considering following code public class A { public static void main(String[] args) { new
considering the following code: models.py class Manufacturers(models.Model): name = models.CharField(max_length=32) class Cars(models.Model): producedby =
Considering the basic data types like char, int, float, double etc..in any standard language
Considering the following objects and a corresponding view: class first_object(osv.osv): _name = first.object _columns
Considering: abstract class Base { def something() = println(Base) } trait TraitA extends Base
Considering the following piece of code. #include <iostream> using namespace std; class Object {
Considering that I have an element like this: <p class=ELP>2/1/2013 - <a id=EL3 class=ELLink

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.