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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:20:47+00:00 2026-05-18T23:20:47+00:00

Adobe has a very clear explanation here : A bound method, sometimes called a

  • 0

Adobe has a very clear explanation here:

A bound method, sometimes called a method closure, is a method that is extracted from its instance. Examples of bound methods include methods that are passed as arguments to a function or returned as values from a function. A bound method is similar to a function closure in that it retains its lexical environment even when extracted from its instance. The key difference, however, between a bound method and a function closure is that the this reference for a bound method remains linked, or bound, to the instance that implements the method. In other words, the this reference in a bound method always points to the original object that implemented the method. For function closures, the this reference is generic, which means that it points to whatever object the function is associated with at the time it is invoked.

If C# support generic closure, is there a way to turn it into a more convenient Bound Method because it is really annoying and unatural not to be able to use this and artificially use sender instead and above all have to explicitely pass the sender object instead of being able to use the implicit this keyword.

  • 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-18T23:20:48+00:00Added an answer on May 18, 2026 at 11:20 pm

    Yes, given that definition, C# supports “bound methods”.

    class Greeter
    {
       public string prefix { get; set; }
    
       public string greet(string who)
       {
          return prefix + " " + who;
       }
    }
    
    class Program
    {
       public static void doit(Func<string, string> a)
       {
          Console.Out.WriteLine(a("World"));
       }
    
       static void Main(string[] args)
       {
          // pass doit a Greeter method bound to instance foo
          Greeter foo = new Greeter() { prefix = "Hello" };
          doit(foo.greet);
    
          // pass doit a Greeter method bound to instance bar
          Greeter bar = new Greeter() { prefix = "Bonjour" };
          doit(bar.greet);
    
          // pass doit a closure bound to the local variable prefix
          string prefix = "Goodbye";
          doit(( who) => prefix + " " + who );
       }
    }
    

    Output:

    Hello World
    Bonjour World
    Goodbye World
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been reading that Adobe has made crossdomain.xml stricter in flash 9-10 and I'm
This page from Adobe says to add a wmode parameter and set its value
I have a swf published into the web, I noticed that Adobe has provided
Today I just learned that Adobe Air has a local SQL database, which is
As someone who has spent around 10 years programming web applications with Adobe's ColdFusion,
Since the release of Adobe AIR I am wondering why Java Web Start has
The Adobe docs (I can't find which) state that Flash can read Shared Objects
I Adobe Air completly JavaScript? Can't I use a .NET language like VB.NET or
I am using Adobe Captivate 3 and am having trouble disabling the typing noise
What exactly is Adobe Air? I've seen a lot of people talking about it

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.