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
I want Text/Image printing Counter Project Description: Need your help in our C# programming project. We need to pass this project in two weeks starting from now to pass our

What is cyclomatic complexity and why is it important? Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally calculate t

Is spending in projects constant throughout the project? Generally in initial stage of projects (design and requirement phase) the cost is very less (as you require maximum bus

Explain the concept of constructor? Constructor is a special method of a class, which is called automatically when the instance of a class is formed. It is created with the sam

Why do we use the XMLHttpRequest object in AJAX? The XMLHttpRequest object is used by JavaScript to transfer XML and other text data among client and server. The XMLHttpRequest

What is the namespace in which .NET have the data functionality classes? System.data : This namespace contains the basic objects used for accessing &  storing relational d

What are design patterns? The Design patterns are recurring solution to the recurring problems in the software architecture. There are 3 basic classification of patterns Behavi

Explain the fundamental of connection pooling. Whenever a connection is opened first time a connection pool is created and is based on the exact match of the connection string

What is the purpose of DOTNET? Dot Net Is a collection of products like C#, ASp.Net, Vb.Net, XML. The purpose of .Net is that we can simply upgrade and degrade our programs whi

Prevent .NET DLL to be decompiled By design phase .NET embeds rich Metadata inside the executable code using the MSIL. Anyone can easily  decompile DLL back using tools such as