.Net MethodImplOptions.NoInlining

Use this to to make sure the method is not inlined at run time by the just-in-time JIT compiler.

public class MethodNoInlining
    {
        [MethodImplAttribute(MethodImplOptions.NoInlining)]
        public static string NormalizeString(object obj)
        {
            return obj.ToString().Normalize(NormalizationForm.FormC);

        }
    }