using System;
public static class IntEx
{
///
/// Yields a power of the given number
///
///
The base number
/// the power to be applied on te base number
/// Powers applied to the base number
public static IEnumerable ListPowersOf(this int number, int powerOf)
{
for (var i = number; ; i
Подробнее здесь: [url]https://stackoverflow.com/questions/25915450/how-to-use-extension-methods-in-powershell[/url]
public static class IntEx { /// /// Yields a power of the given number /// /// The base number /// the power to be applied on te base number /// Powers applied to the base number public static IEnumerable ListPowersOf(this int number, int powerOf) { for (var i = number; ; i