Click or drag to resize

SystemExtensionPowMod Method (Int32, Int32, Int32)

Raises an Int32 to the power of another with respect to a modulo.

Namespace:  WhetStone.SystemExtensions
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static int PowMod(
	this int powbase,
	int power,
	int modulo
)

Parameters

powbase
Type: SystemInt32
The base of the exponential.
power
Type: SystemInt32
The exponent of the exponential.
modulo
Type: SystemInt32
The modulo for the exponential.

Return Value

Type: Int32
powbase to the power of power modulo modulo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also