using System; namespace ICSharpCode.Decompiler.Tests.TestCases.Ugly { internal static class NoExtensionMethods { internal static Func AsFunc(this T value) where T : class { return new Func(value.Return); } private static T Return(this T value) { return value; } internal static Func ExtensionMethodAsStaticFunc() { return Return; } internal static Func ExtensionMethodBoundToNull() { return ((object)null).Return; } } }