Possible Duplicate:
Inline functions in C#?
What is method inlining?
i've been debugging code, and a 'possible' source of the issue is in a function which is marked with this code:
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
protected virtual void PropertyHasChanged()
Reading MSDN says this: Specifies that the method cannot be inlined.
But what is 'inlining' a method?
EDIT:
To clarify: the PropertyHasChanged()
method is called in the SET method of every property and updates (adds 1 to it) an internal object counter. When that counter > 0, the object is marked as 'dirty' and will be saved to the database when Save is called. When the counter = 0, the object will not be saved to the database. Now i've got the idea that this code sometimes is not executed (the counter is not increased) so the object won't be saved to the database,