diff --git a/src/Server/WebApi/Mapping/MappingProfile.cs b/src/Server/WebApi/Mapping/MappingProfile.cs index 72c67bb..385265e 100644 --- a/src/Server/WebApi/Mapping/MappingProfile.cs +++ b/src/Server/WebApi/Mapping/MappingProfile.cs @@ -28,7 +28,7 @@ private void ApplyMappingsFromAssembly(Assembly assembly, Type mappedType, strin if (methodInfo is not null) { - methodInfo.Invoke(instance, new object[] { this }); + methodInfo.Invoke(instance, [this]); } else { @@ -40,7 +40,7 @@ private void ApplyMappingsFromAssembly(Assembly assembly, Type mappedType, strin { var interfaceMethodInfo = @interface.GetMethod(mappingMethodName, argumentTypes); - interfaceMethodInfo?.Invoke(instance, new object[] { this }); + interfaceMethodInfo?.Invoke(instance, [this]); } } }