> Having done a bit of testing, it doesn't *appear* that it can - at
> least not as far as I can see.
>
> I tested this by creating a helper class with two methods, one with
> [MethodImplAttribute(MethodImplOptions.NoInlining)] specified. This I
> compiled into a library of its own.
Hi Jon,
I've just tried a similar test, after reading your mail. But I seem
to be getting different results (entirely possible its my fault

.
I created a class inside an assembly with two public properties ["int
Inlined" and "int NotInlined"] and flagging the 'NotInlined' property as you
describe above.
I then wrote a simple test console application referencing the assembly, and
call the Inlined attribute 9999999 times and output the length of time
taken. And the same again but with the 'NotInlined' attribute. The timed
results were:
'Inline' Property: 10.55441ms
'NotInline' Property: 63.79023ms
The only difference between the properties is the 'NoInlining' attribute is
applied to one and not the other. Of course I may still be wrong, and this
is with the 1.0 framework as we're not allowed .NET2003 at work (I can check
with the 1.1 framework when I get home later). Just thought I'd add to your
post, I can mail my test project to anyone interested (maybe I did something
wrong?

.
> This is slightly worrying, I must admit...
I will certainly be worried if the JIT can't inline such calls. :/
n!