He-he...

  • Thread starter Thread starter Alexander Gorbylev
  • Start date Start date
A

Alexander Gorbylev

Because
int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder));

Right is:

Math.DivRem(MaxValue, 2, out remainder)
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];

Distraction on last degree and hurly-burly...

:-)
 
Hi,

Please use a more descriptive subject next time, I though this was SPAM,
only when I saw your other post I realized you were "real"

Alexander Gorbylev said:
Because
int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder));

Right is:

Math.DivRem(MaxValue, 2, out remainder)
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];

Distraction on last degree and hurly-burly...

:-)
 
Alexander said:
Because
int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder));

Right is:

Math.DivRem(MaxValue, 2, out remainder)
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];

Distraction on last degree and hurly-burly...

WHy not use '%'? Makes the code more clearer than a call to DivRem,
which does practically the same.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top