using System.Runtime.CompilerServices;
public class InFirstAssembly
public static void Main()
SecondAssembly.InSecondAssembly.OtherMethod();
[MethodImpl(MethodImplOptions.NoInlining)]
public static void FirstMethod()
Console.WriteLine("FirstMethod called from: " + Assembly.GetCallingAssembly().FullName);
[MethodImpl(MethodImplOptions.NoInlining)]
public static void OtherMethod()
Console.WriteLine("OtherMethod entry assembly: " + Assembly.GetEntryAssembly().FullName);
Console.WriteLine("OtherMethod executing assembly: " + Assembly.GetExecutingAssembly().FullName);
Console.WriteLine("OtherMethod called from: " + Assembly.GetCallingAssembly().FullName);