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
Show the code for the file dependency in cache? Partial Class Default_aspx Public Sub displayAnnouncement() Dim announcement As String If Cache("announcement") Is Noth

What are the types of dependencies in cache? Whenever you add an item to the cache, the dependency relationships is define that can force that item to be removed from the cache

What are major events in GLOBAL.ASAX file? The Global.asax file, which is derived from the HttpApplication class, maintains a pool of the HttpApplication objects, & assigns the

What is an IL? Intermediate Language is also called as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. IL

Project Description: I want a web based or a desktop bot that will do this: 1- a youtube channel creator + gmail account creator.. i put the amount of account and it creates

What are the steps involved to fill a dataset ? The sample code is shown below: Private Sub LoadData() Dim strConnectionString As String strConnectionString = AppSetti

Require an expert Web Developer Our small business wants an experienced web developer to provide ongoing technical support for two websites. Experience with ASP.NET is a must.

What is MVC pattern? The main purpose  of using  the MVC pattern is to decouple the GUI from the Data. It also gives the ability to provide multiple views for the same Data. Th

Avoid deadlock in threading The best  and careful planning may avoid deadlocks.There are so many ways Microsoft has provided by which you can decrease deadlocks for example Int

Briefly explain the characteristics of reference-type variables that are supported in the C# programming language. The variables that are based on reference types keeps referen