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