The short answer is, you can't.
Extension methods can only apply to object instances, but the Console
class is static. The only solution is to write your own, completely separate class, say ConsoleEx
, and implement any methods you want there.
Extension methods make it possible to write a method that can be called as if it were an instance method of the existing type.