Back
Close

C# != Operator Tutorial - AmieDD

amiedd
2,294 views

C# != Operator Tutorial

This C# != Operator Tutorial www.amiedd.com AmieDD - code, cosplay and games

using System;
class InequalityTest
{
static void Main()
{
// Numeric numbers that don't equal:
Console.WriteLine((2 + 2) != 4);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

About C# != Operators

!= Not equal.Predefined value types, the inequality operator (!=) returns true if the values are different, false. If the reference types isn't a string, != returns true if its two operands points to different objects. String type, != compares the values of the strings.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants