Description
The FromBase36
method is a static extension method in the SandboxSystemExtensions
class. It converts a base-36 encoded string into a 64-bit integer (Int64
). Base-36 encoding uses the characters 0-9 and A-Z, making it a compact way to represent large numbers.
Usage
To use the FromBase36
method, pass a base-36 encoded string as the parameter. The method will return the corresponding 64-bit integer. Ensure that the input string is a valid base-36 encoded string, as invalid inputs may result in exceptions.
Example
// Example usage of FromBase36 method
string base36String = "1Z";
long result = SandboxSystemExtensions.FromBase36(base36String);
// result will be 71, as "1Z" in base-36 is equivalent to 71 in base-10