input: from typing import List
  
  
  def power_of(base: int, exponent: int) -> int:
      """ Convert a given Python program that calculates the power of a number to a C# program.
      >>> power_of(2, 0)
      1
      >>> power_of(2, 3)
      8
      """
output:     if exponent == 0:
          return 1
      result = 1
      for _ in range(exponent):
          result *= base
      return result