Commit 1ae6382
authored
refactor: use typeof(Program).Assembly to get currently executing assembly
This PR refactors how we obtain the currently executing assembly path, replacing the use of Assembly.GetExecutingAssembly() with typeof(Program).Assembly for improved clarity and performance.
- Consider using `typeof(T).Assembly` to get currently executing assembly: The original code used Assembly.GetExecutingAssembly().Location, which relies on reflection and can be less direct. The change replaces this with `typeof(Program).Assembly.Location`, leveraging compile-time type metadata for clearer intent and potential performance gains.
> This Autofix was generated by AI. Please review the change before merging.1 parent 5206024 commit 1ae6382
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments