So I have an event right...
public class SetLineItemEvent : CompositePresentationEvent<SetLineItemEventPayload> { }
No that SetLineItemEventPayLoad contains a LineItem object right? When I fire that event and create a new instance of SetLineitemEventPayLoad and set the line item object does it make a copy of that object? or am I left with a reference to the original object? It looks like it uses "Deep Cloning" (meaning I have a completely new copy) but I would like someone to confirm that if they are able.
See this link for a better idea of what I mean by deep cloning.. http://www.csharp411.com/c-object-clone-wars/
Thanks
Whether an object is copied or merely referenced depends upon whether than object is based upon a class or struct. Class objects are always referenced whereas struct objects are always copied whenever they are assigned or passed as parameters to methods.
So, the behaviour depends upon whether your 'line item' is a class or struct.