Victor.X.Qu
Victor.X.Qu
该场景特殊,一般aop 使用场景应该佷难遇见 https://github.com/dotnetcore/AspectCore-Framework/blob/master/src/AspectCore.Core/Utils/ProxyGeneratorUtils.cs#L365 应该判断 `method.IsAbstract` ``` if (method.IsAbstract) { var methodBuilder = implTypeBuilder.DefineMethod(method.Name, InterfaceMethodAttributes, method.CallingConvention, method.ReturnType, method.GetParameters().Select(x => x.ParameterType).ToArray()); var ilGen = methodBuilder.GetILGenerator(); if (method.ReturnType != typeof(void)) { ilGen.EmitDefault(method.ReturnType); }...
- [ ] waiting https://github.com/dotnet/roslyn/issues/45060 - [ ] waiting source generator improve
``` csharp public readonly struct xxx {} void Method(in xxx x) ``` such scene can't emit proxy