Skip to content

Is there a way to force tier 1 compilation of a method? #95847

Answered by KeterSCP
ladeak asked this question in Q&A
Discussion options

You must be logged in to vote

Can you try with?

for (int i = 0; i < 100; i++)
{
    length += myObj.ByTypeCastMediaTypeHeaderValue().MediaType.Length;
    Thread.Sleep(10);
}

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ladeak
Comment options

@KeterSCP
Comment options

Answer selected by ladeak
@ladeak
Comment options

Comment options

You must be logged in to vote
1 reply
@ladeak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants