using System; using System.Runtime.CompilerServices; [assembly: Extension] namespace ICSharpCode.Decompiler.Tests.TestCases.Ugly { [Extension] internal static class NoExtensionMethods { [Extension] internal static Func AsFunc(T value) where T : class { return new Func(value, __ldftn(Return)); } [Extension] private static T Return(T value) { return value; } internal static Func ExtensionMethodAsStaticFunc() { return Return; } internal static Func ExtensionMethodBoundToNull() { return new Func(null, __ldftn(Return)); } } }