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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:36:27+00:00 2026-06-11T10:36:27+00:00

Just to be clear, a class that inherits DynamicObject (in C# of course) is

  • 0

Just to be clear, a class that inherits DynamicObject (in C# of course) is not the same concept as JavaScript’s variables being dynamic. DynamicObject allows the implementer to programmatically determine what members an object has, including methods.

Edit: I understand that JavaScript objects can have any members added to them at run time. That’s not at all what I’m talking about. Here’s a C# example showing what DynamicObject does:

public class SampleObject : DynamicObject
{
    public override bool TryGetMember(GetMemberBinder binder, out object result)
    {
        result = binder.Name;
        return true;
    }
}

dynamic obj = new SampleObject();
Console.WriteLine(obj.SampleProperty);
//Prints "SampleProperty".

When a member of obj is accessed, it uses the TryGetMember to programmatically determine whether the member exists and what its value is. In short, the existence of a member is determined when it’s requested, not by adding it before hand. I hope this clarifies the question a little. In case you’re wondering, I’m trying to determine if it’s possible to make an object in JavaScript, that when the function call syntax is used on it like so:

myAPI.uploadSomeData(data1, data2)

The uploadSomeData call goes to a “TryGetMember” like function, which performs an $.ajax call using the name “uploadSomeData” to generate the URL, and the return value is the result.

  • 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-11T10:36:29+00:00Added an answer on June 11, 2026 at 10:36 am

    Amazing the after only a few weeks of occasional JavaScript studies I’ve managed to find two answers:

    ES6 Proxies

    noSuchMethod

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

Sidebar

Related Questions

The javascript one seems pretty simple, just localStorage.clear(). Is there anything similar to that
Just to be clear, I am not asking for legal advice, I am asking
Just a (hopefully) quick question to clear something up with how Javascript handles objects.
I'm just starting with django. It is not quite clear to me, how should
I have one class that inherits another. I want to use reflection to cycle
I just ran this jsPerf test in Chrome 18 and found that .class performs
EDIT : Just to be completely clear. My primary interest is NOT IE6 but
UPDATE: Just to be clear, I'd like to check the key-value of the 'name'
I'm reading Metaprogramming Ruby and just want to clear something up about the following
Just to make this clear, I have looked at the other questions on this

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.