Closed Tawmy closed 1 year ago
As the name suggests, Assembly.GetExecutingAssembly() returns the executing assembly. However, this is not an efficient way. Consider using typeof(T).Assembly instead.
Assembly.GetExecutingAssembly()
typeof(T).Assembly
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/Leyla-Labs/Leyla.Bot/issue/CS-P1018/occurrences/
Description
As the name suggests,
Assembly.GetExecutingAssembly()
returns the executing assembly. However, this is not an efficient way. Consider usingtypeof(T).Assembly
instead.Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/Leyla-Labs/Leyla.Bot/issue/CS-P1018/occurrences/