**Casting:** The C# language has complex rules for implicit casting, so this may occur when using Math.Min or similar Math methods.

**Info:** In both uses of Math.Min, the smaller of the two values (the identifiers value1, and value3) are returned.

**Also:** You cannot use null as a parameter or any reference type. The number zero can be used with Math.Min.

**However:** I found that the Math.Min methods for decimal and float contain additional processing only for those types.

© 2007-2019 Sam Allen. Every person is special and unique. Send bug reports to info@dotnetperls.com.

Home

Dot Net Perls