typeof(T).Assembly
to get currently executing assembly CS-P1018As the name suggests, Assembly.GetExecutingAssembly()
returns the executing assembly. However, this is not an efficient way. Consider using typeof(T).Assembly
instead.
var assembly = Assembly.GetExecutingAssembly();
var assembly = typeof(T).Assembly;