New to C# CF

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hello all,

Maybe simple Questions but I try to learn C# for Compact framework.

Can somebody explain to me what is :
1) difference between = = and ! =
2) the && stands for ?

like in
if (font == null && parent != null)

Thanks

Peter
 
Peter said:
Maybe simple Questions but I try to learn C# for Compact framework.

I would *strongly* recommend that you learn the basics of C# and .NET
on the desktop first. It's a much friendly development environment - no
need for emulators or deploying to devices etc.
Can somebody explain to me what is :
1) difference between = = and ! =

Firstly, with the spaces in they're invalid.

== is the equality operator
!= is the inequality operator
2) the && stands for ?

Logical "and"
like in
if (font == null && parent != null)

That says "If the value of the font variable is null and the value of
the parent variable isn't null".
 
Peter said:
Can you also tell me what the operator is for "OR" ?

I could, but I'm not going to. Not because I'm mean, but because this
is a painfully slow way of learning C# which is *far* less efficient
than reading a decent book or tutorial.

If I tell you what the operator for "OR" is, I suspect I'll then have
to tell you how to declare a method. And then how to call one. And then
how to pass parameters, etc. These aren't questions best suited to
newsgroups - they're the kind of thing much better answered by learning
the language from scratch rather than by just trying to pick it up from
other people's code and asking questions. (Both of those are *part* of
the process, but they shouldn't be the starting point.)
 
Hello Jon,

I followed your advice and did find some E-Books which I gonna read.
I agree this is the best way to do learn more about it.

Thanks for pointing me out on this topic.

Regards,
Peter.
 
Beginning C# from Wrox Press is a great start.

-Chris


Peter said:
Many thanks Jon,

Can you also tell me what the operator is for "OR" ?

Regards,

Peter.
 
Back
Top