using System;
class Runner
{
static void Main()
{
A a = new A();
// how to say a.PrintStuff() without a \'using\'
Console.Read();
This makes me feel dirty, but you can put your extension methods in the System namespace. This namespace is included by default in your question
using System;
class Runner
{
static void Main()
{
A a = new A();
// how to say a.PrintStuff() without a 'using'
Console.Read();
}
}
class A { }
namespace System
{
static class AExtensions
{
public static void PrintStuff(this A a)
{
Console.WriteLine("text");
}
}
}