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

Re: New to C# CF by Jon

Jon
Mon Aug 23 06:46:08 CDT 2004

Peter <pvdacker@nospam_home.nl> wrote:
> 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".

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: New to C# CF by Peter

Peter
Mon Aug 23 08:16:35 CDT 2004

Many thanks Jon,

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

Regards,

Peter.





"Jon Skeet [C# MVP]" <skeet@pobox.com> schreef in bericht
news:MPG.1b93e957fde8345198b264@msnews.microsoft.com...
> Peter <pvdacker@nospam_home.nl> wrote:
> > 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".
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



Re: New to C# CF by Jon

Jon
Mon Aug 23 08:45:58 CDT 2004

Peter <pvdacker@nospam_home.nl> wrote:
> 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.)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: New to C# CF by Peter

Peter
Mon Aug 23 09:14:50 CDT 2004

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.



"Jon Skeet [C# MVP]" <skeet@pobox.com> schreef in bericht
news:MPG.1b94057461555dd998b269@msnews.microsoft.com...
> Peter <pvdacker@nospam_home.nl> wrote:
> > 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.)
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



Re: New to C# CF by Chris

Chris
Mon Aug 23 10:33:50 CDT 2004

Beginning C# from Wrox Press is a great start.

-Chris


"Peter" <pvdacker@nospam_home.nl> wrote in message
news:%23fH$vNRiEHA.592@TK2MSFTNGP11.phx.gbl...
> Many thanks Jon,
>
> Can you also tell me what the operator is for "OR" ?
>
> Regards,
>
> Peter.
>
>
>
>
>
> "Jon Skeet [C# MVP]" <skeet@pobox.com> schreef in bericht
> news:MPG.1b93e957fde8345198b264@msnews.microsoft.com...
> > Peter <pvdacker@nospam_home.nl> wrote:
> > > 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".
> >
> > --
> > Jon Skeet - <skeet@pobox.com>
> > http://www.pobox.com/~skeet
> > If replying to the group, please do not mail me too
>
>