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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:13:59+00:00 2026-05-31T17:13:59+00:00

I give possibility to user to input strings with unique keys that represent one-line

  • 0

I give possibility to user to input strings with unique keys that represent one-line c# complex operator (one line of code like ‘2 + (a – (x && y ? 1 : 7))‘. Operator can use Nullable<bool> and Nullable<double> variables.
At start I have Dictionary<string, object> of pre-defined values.
User can use this variables and standart c# operators: +, -, *, /, &&, ||, !, (), >, >=, <, <=, ==, !=, ?a:b, ??.

I need to reuse c# operators priority mechanism and compilation errors, warnings and messages (that goes to output after compilation)

  1. how to compile input string and get error messages?
  2. how to predefine variables that used in string, before compilation (generate code like var x = new Nullable<bool>(true); or something other)?
  3. is it possible to get error messages in russian language?
  4. can I store result of compilation for perfomance improvement (function will called multiple times later)?
  • 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-31T17:14:00+00:00Added an answer on May 31, 2026 at 5:14 pm

    Typically, you’d use an expression parser, such as NCalc, to do this. They often have an API that would be fairly easy to adapt to your requirements.

    is it possible to get error messages in russian language?

    This would likely be the most difficult of your requirements, if using an existing library. However, NCalc or one of the other open sourced expression library parsers could be modified to provide Russian error messages.

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

Sidebar

Related Questions

I'm working on Django website that should give a possibility to select cooking recipes
Is there some client components (jquery/swf) that will give the possibility to upload and
I want to give the user the possibility to share a Image and a
I have settings in my App and want to give the user the possibility
We have an application that basically archives files and we give the user the
If we give set up to the user then there is a possibility of
I want to give the user possibility to paste an image into a webform.
I want to give users the possibility to dynamically add new columns at the
Give a linear-time algorithm to test whether a tree has a perfect matching, that
Give a base class Base , I want to write a method Test, like

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.