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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:12:30+00:00 2026-05-27T04:12:30+00:00

I thought it would be fun if I could write vb.net or c# code

  • 0

I thought it would be fun if I could write vb.net or c# code at runtime and the interpreter would automatically parse it like python does it, so I made a little program, which would do something similar. Basically it looks like this:

InputArgs = Console.ReadLine()
ParseInput(InputArgs.Split(" "))

Private Sub ParseInput(Args as List(Of String), Optional TempArgs as List(Of String))
Dim arg as string = Args(0)
If arg = ".." then
 ...
elseif arg = ".." then
 ...
end if
End Sub

I know it’s not a good system, but it show’s the basics. So my question is: Is it possible to make vb.net or c# like python – interpreted at runtime?

  • 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-27T04:12:30+00:00Added an answer on May 27, 2026 at 4:12 am

    This already exists in a fair number of shapes and forms:

    Mono.CSharp

    Mono has the Mono.CSharp assembly, which you can reference to do whatever CSharp.exe (A C# ‘interpreter’ or interactive shell, if you will) can do:

    void ReadEvalPrintLoopWith (ReadLiner readline)
    {
        string expr = null;
        while (!InteractiveBase.QuitRequested){
                string input = readline (expr == null);
                if (input == null)
                    return;
    
                if (input == "")
                    continue;
    
                expr = expr == null ? input : expr + "\n" + input;
    
                expr = Evaluate (expr);
        } 
    }
    

    Needless to say this works on MS.Net too (of course, that’s the point about portable .Net).

    Full sources here on github – just as the rest of Mono, in fact.

    DLR

    Several DLR languages have been implemented, including but not limited to

    • IronRuby
    • IronPython
    • Jint (http://jint.codeplex.com/) – does javascript on .Net 2.0

    It will allow you to evaluate python/ruby code on the fly in the .NET framework.

    Roslyn

    Microsoft has published Roslyn as a CTP (preview). It can basically do the same stuff as the Mono REPL (first item), and (much) more. But it is a preview still.

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

Sidebar

Related Questions

I just made my first MVC3 app, and I thought it would be fun
I thought that it would be fun to present some classic CS problems and
I thought people would be working on little code projects together, but I don't
(The background for this question is that I thought it would be fun to
I thought it would be fun to check Sproutcore out, but I ran into
I am brand new to game development and I thought it would be fun
As a challenge to my beginner programming ability I thought it would be fun
This is what I thought would be a simple select clause, however the following
I am trying to do something I thought would be simple. I have a
I'm being stymied by what I thought would be the relatively simple task of

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.