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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:02:41+00:00 2026-06-14T03:02:41+00:00

I just want to debug calling Find from Immediate Window, is it possible? Customer

  • 0

I just want to debug calling Find from Immediate Window, is it possible?

            Customer found = listOfCustomers.Find(
                delegate(Customer cu)
                {
                    return cu.Name.ToLower().Contains("adam");
                }
            );
  • 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-14T03:02:43+00:00Added an answer on June 14, 2026 at 3:02 am

    As pointed out by many others, you cannot use the immediate window to do this. I do have another suggestion that might work well for you. I use it all the time and it is the best tool I’ve used in a long time.

    Roslyn is a project from Microsoft that exposes the C# and VB.NET compilers to developers. That is cool for a number of other reasons, but one in particular pertains to your needs. It includes a C# Interactive Window.

    While it is a CTP (hasn’t even made a beta release yet), I’ve found it to be quite stable. The June 2012 CTP supports VS2010, while the September 2012 CTP supports only VS2012.

    You can reference other DLLs (both system and project) using the #r directive, and then use normal C# code and plug away. It supports nearly all of the language features (I think async/await, PInvoke, dynamic, and a few other things aren’t). Here’s a sample of it’s output.

    Microsoft (R) Roslyn C# Compiler version 1.1.20524.4
    Loading context from 'CSharpInteractive.rsp'.
    Type "#help" for more information.
    > var strarr = new[] { "a", "b", "c", "d", "e", "f", "g", "h" };
    > strarr
    string[8] { "a", "b", "c", "d", "e", "f", "g", "h" }
    > strarr.TakeWhile(s => s != "e")
    TakeWhileIterator { "a", "b", "c", "d" }
    > #r "D:\SVN\Lucene.Net\Trunk\bin\Lucene.Net.dll"
    > using Lucene.Net.Store;
    > var d = new RAMDirectory();
    > d.Dispose()
    <void>
    > strar
    (1,1): error CS0103: The name 'strar' does not exist in the current context
    > #reset
    Resetting execution engine
    Loading context from 'CSharpInteractive.rsp'.
    > 
    

    As you can see, you can use lambdas (you can use anonymous methods as well) as well as other language features. I also referenced the Lucene.Net dll that’s on my computer, and then was able to import the namespace and use the types. You can also reference an entire project my right-clicking on it and selecting “Reset Interactive from Project”, but I’ve found that it sometimes will throw an error and not work.

    If you’re looking for a tool to play around with code without having to run the debugger, I would recommend looking into Roslyn.

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

Sidebar

Related Questions

Just want to know how to read an attribute of a parent node from
I just want to add some extra text on top of input posted from
After generating a type dynamically and calling TypeBuilder.CreateType, I want to create a delegate
I run Ubuntu 10.10. I just want to debug a simple script. After spending
How can I debug a resque job in rails application? I just want to
So basically I just want to debug a couple of simple scripts by trying
Just want to ask if i can use Custom Validator in client side without
Just want to make sure one thing. In a windows machine (either a desktop
Just want to know if publishing an application on Google play is allowed using
Just want to ask can netbean IDE get connected to clearcase remote client server

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.