Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between >= and =>?

Tags:

syntax

c#

.net

I saw this

i >= 5

but I also saw this

i => 5

What's the difference?

like image 936
Difference Engine Avatar asked Sep 14 '10 05:09

Difference Engine


People also ask

What is the difference of greater than and greater than or equal to?

'Greater than' means that some variable or number can have any value that is greater than the given limit. Whereas the 'greater than or equal to' symbol states that the number or variable can be equal to or more than the given limit.

Whats the difference between and ≥?

Greater than or equal to sign: ≥ This is because ≥ does not denote a strict inequality. This is the only difference between ">" and "≥".

What is the difference between += and =+?

+ is an arithmetic operator while += is an assignment operator.. When += is used, the value on the RHS will be added to the variable on the LHS and the resultant value will be assigned as the new value of the LHS..

What is the difference between == and === example?

== is used for comparison between two variables irrespective of the datatype of variable. === is used for comparision between two variables but this will check strict type, which means it will check datatype and compare two values.


1 Answers

=> on MSDN The => token is called the lambda operator. It is used in lambda expressions to separate the input variables on the left side from the lambda body on the right side. Lambda expressions are inline expressions similar to anonymous methods but more flexible; they are used extensively in LINQ queries that are expressed in method syntax. For more information, see Lambda Expressions (C# Programming Guide).

>= on MSDN All numeric and enumeration types define a "greater than or equal" relational operator, >= that returns true if the first operand is greater than or equal to the second, false otherwise.

like image 81
SeeSharp Avatar answered Sep 21 '22 19:09

SeeSharp