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
What are the different locks in SQL SERVER? Depending on the transaction level there are six types of lock that can be acquired on data :- 1)Intent: The intent lock des

Our company is seeking a talented PHP Developer to join our young and dynamic online media agency. Must have: - Knowledge in SQL and Databases, proven indexing and coding exp

what are major difference between classic ADO &ADO.NET?

I want Workflow Designer (HTML5) Project Description: I am seeking an HTML5 designer for a custom workflow tool. It should have drop and drag functionality. Saving it as XML

can we use sql data base with visual studio


What is Service Oriented architecture? The "Services" are the components which expose well defined interfaces and these interfaces communicate through XML messages. By Using th


Question: (a) List three advantages of binding data to controls. (b) The Repeater control uses templates to control formatting. Define the five types of templates supporte

What is "Common Language Runtime" (CLR)?  CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that changes a MSIL code into the host machine language code,