Checking for validity of an expression - c# program, DOT NET Programming

Checking for validity of an expression - C# Program

Hello can you please provide me some examples regarding to the Checking for validity of an   expression in C#.

Posted Date: 2/11/2013 7:00:16 AM | Location : United States





Hi you can use this example,

Program - Checking for validity of an expression

using System;

 class CheckExpression

{

  public static void Main()

 {

   int x,y,a,b;

  x - y = 100;

   // gives error 

   //"The left-hand side of an assignment must be a variable, property or

indexer"

  x - (y = 100);

   // gives error 

   //"Only assignment, call, increment, decrement, and new object expressions 

   // can be used as a statement"  

 }

}

Posted by Robert | Posted Date: 2/11/2013 7:02:05 AM

Hey this the best way i have ever seen on web. i got solution for all my problems. Thanks alot.

 

Posted by Jermy | Posted Date: 2/11/2013 7:03:07 AM


Related Discussions:- Checking for validity of an expression - c# program, Assignment Help, Ask Question on Checking for validity of an expression - c# program, Get Answer, Expert's Help, Checking for validity of an expression - c# program Discussions

Write discussion on Checking for validity of an expression - c# program
Your posts are moderated
Related Questions
CTS(Common Type System) : In order that the two language communicate smoothly CLR has CTS (Common Type System). Example in VB you have "Integer" and in C++ you have "long" these d

Project Description: hi i need to develop a software scrapebox exect same with all Skills required: .NET, Java, C# Programming, Visual Basic, Visual Basic for Apps

Media Player App Development for Windows 8.1 platform with outstanding UI, flexible controls and simple to use. The app should be consist of 1. Normal player controls 2. s

Xlsx/Csv File Reader Need C# MVC coder that will do the following- Take a filepath for an online xlsx, xls or csv file (must be able to handle each of these formats) as well

The Events are always public as they are meant to serve each one registering to it. But you can access modifiers in the events.You may have events with protected keyword which will

Explain hybrid and community cloud. The hybrid cloud having of multiple service providers. This model integrates several cloud services for Hybrid Web hosting. It is basically


Webservices as such do not have any mechanism by which they can maintain their state. The Webservices can access ASP.NET intrinsic objects such as application, session and many mor

How will you do code reviews? The way in which the code reviews are done change from person to person and also from company to company. But generally when a project is started

ASP.NET 2.0 application port to ASP.NET MVC Project Description: Legacy ASP.NET application for managing tasks for a private client needs a complete re-write. The applicat