/// <summary> /// Invokes the 'ChooseHighestStubOrChild' method of the specified <see cref="ComplexTypeInheritance_EntityGrandchild"/> entity. /// </summary> /// <param name="grandchild">The <see cref="ComplexTypeInheritance_EntityGrandchild"/> entity instance.</param> /// <param name="child">The value for the 'child' parameter for this action.</param> /// <param name="children">The value for the 'children' parameter for this action.</param> public void ChooseHighestStubOrChild(ComplexTypeInheritance_EntityGrandchild grandchild, ComplexInheritance_Child child, ComplexInheritance_Child[] children) { grandchild.ChooseHighestStubOrChild(child, children); }
// Tests that we can roundtrip complex types in a custom method. public void ChooseHighestStubOrChild(ComplexTypeInheritance_EntityGrandchild grandchild, ComplexInheritance_Child child, ComplexInheritance_Child[] children) { var entityChildren = new List<ComplexInheritance_Child>(); entityChildren.Add(grandchild.Child); ChooseHighestChild(entityChildren); ChooseHighestChild(new ComplexInheritance_Child[] { child }); ChooseHighestChild(children); }