C# Ping ?

  • Thread starter Thread starter JC
  • Start date Start date
JC,

Try this

set
{
m_Timeout = System.Math.Max(value,1);
}

I donno wat is MinMax. May be a custom class. Its getting max of two values
in this case.

Shak.
 
clinton,

In the following code JC was wondering abt MinMax class becoz it doesnt
compile for him.

MinMax.max(value, 1)

Can you pay attention to the questions next time? This is not the place to
make fun of others. Share your knowledge and help others if you can :).

Shak.


clintonG said:
Wouldn't it be nice if you both learned how to use documentation?
Both Min and Max are members of the Math class [1].

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemmathmemberstopic.asp



Shakir Hussain said:
JC,

Try this

set
{
m_Timeout = System.Math.Max(value,1);
}

I donno wat is MinMax. May be a custom class. Its getting max of two values
in this case.

Shak.
 
It is unfortunate, on that particular site, that there is no way to offer
feedback to the author. Apparently, the author was using his own
"utilities" that included functions that he wrote for minimum and maximum.
I'm sure you can use the Max function in the System.Math namespace instead,
or just write your own.

Good Luck,
--- Nick

P.S. Don't let the critics get you down.
 
Here is one I did that does not require admin perms and is contained in one
cs file. See Attachment. hth
 
Back
Top