Get The Topmost Assembly Name

This is just a useful snippet that will get you the top most assembly name. Especially useful if you have code in a NuGet package that will be consumed by some other library… and eventually by an application. public string GetTopLevelAssembly() { StackFrame[] stackTraceFrames = new StackTrace().GetFrames(); return stackTraceFrames.Select(f => f.GetMethod().ReflectedType.AssemblyQualifiedName).Distinct().Last(); }

The Mainstream Effect

The mainstream effect describes a level of popularity that a given technique may gain, which causes the general knowledge of it to become dangerously superficial. When it exists in a small niche, amongst a dedicated community of practitioners, the technique proves to be highly effective. The technique is passed on from person to person in […]