Exemplo n.º 1
0
        public HandledSingleChild Patch(HandledThing parent, HandledSingleChild child)
        {
            if (parent == null)
                throw new ArgumentNullException(nameof(parent));

            child.PatchHandlerCalled = true;

            return child;
        }
Exemplo n.º 2
0
        public HandledSingleChild Patch(HandledThing parent, HandledSingleChild child)
        {
            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }

            child.PatchHandlerCalled = true;

            return(child);
        }
Exemplo n.º 3
0
 public HandledThing()
 {
     SingleChild = new HandledSingleChild(this) { Name = "The loner" };
 }