A
almurph
Hi,
Can you help me with this please? i am trying to translate some C
into C#. Is the following first line cod code (in C) equivalent to he
second (in C#.NET)? I can't write it literally as C# does not like the
first segment:
if((a < b) == (c == 1))
{
do something;
}
equivalent to (the C# equivalent):
if(c == 1)
{
if(a < b)
{
do something;
}
else
{
if(! a< b)
{
do something;
}
}
}
Would appreciate any comments/suggestions/reviews that you may be
able to offer.
Thanking you,
Colm
Can you help me with this please? i am trying to translate some C
into C#. Is the following first line cod code (in C) equivalent to he
second (in C#.NET)? I can't write it literally as C# does not like the
first segment:
if((a < b) == (c == 1))
{
do something;
}
equivalent to (the C# equivalent):
if(c == 1)
{
if(a < b)
{
do something;
}
else
{
if(! a< b)
{
do something;
}
}
}
Would appreciate any comments/suggestions/reviews that you may be
able to offer.
Thanking you,
Colm