Hi all
Again I read the documents to understand
What understood…
In D365FO, the Wrappable attribute (true/false) controls whether a method can be extended using the Chain of Command (CoC) pattern. If Wrappable = true, developers can wrap the method in extensions and must call next to preserve the chain. If Wrappable = false, the method cannot be wrapped.
Wrappable true -
The method can be wrapped using CoC.Extenders can add logic before/after the base method.They must call next to continue execution of the chain.Applies to public and protected methods (unless marked final).
Wrappable false
The method cannot be wrapped.No CoC extension is possible.
Public methods → These are accessible from anywhere in the application. If marked Wrappable = true, they can be extended using Chain of Command.
Protected methods → These are accessible only within the class itself and its subclasses. They can also be wrapped if Wrappable = true.
Final methods → Even if they are public or protected, if marked final, they cannot be extended or wrapped. The final keyword locks them down completely.
Is am I correct?
Pls advise, thanks