Ejemplo n.º 1
0
        static SharedHelper()
        {
            _entityA = new List <EntityA>();
            _entityX = new List <EntityX>();
            _entityY = new List <EntityY>();

            for (int i = 0; i < 20; i++)
            {
                if ((i % 3) == 0)
                {
                    EntityA a = CreateEntityA();
                    _entityA.Add(a);
                }
                else if ((i % 3) == 1)
                {
                    EntityX x = CreateEntityX();
                    _entityX.Add(x);
                }
                else
                {
                    EntityY y = CreateEntityY();
                    _entityY.Add(y);
                }
            }
        }
 public void UpdateAThroughParent(EntityA entityA)
 {
     // Do nothing
 }
 public void UpdateAThroughChild(EntityA entityA)
 {
     // Do nothing
 }
 /// <summary>
 /// Invokes the 'UpdateAThroughChild' method of the specified <see cref="EntityA"/> entity.
 /// </summary>
 /// <param name="entityA">The <see cref="EntityA"/> entity instance.</param>
 public void UpdateAThroughChild(EntityA entityA)
 {
     entityA.UpdateAThroughChild();
 }
 /// <summary>
 /// Invokes the 'UpdateAThroughParent' method of the specified <see cref="EntityA"/> entity.
 /// </summary>
 /// <param name="entityA">The <see cref="EntityA"/> entity instance.</param>
 public void UpdateAThroughParent(EntityA entityA)
 {
     entityA.UpdateAThroughParent();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Invokes the 'UpdateAThroughChild' method of the specified <see cref="EntityA"/> entity.
 /// </summary>
 /// <param name="entityA">The <see cref="EntityA"/> entity instance.</param>
 public void UpdateAThroughChild(EntityA entityA)
 {
     entityA.UpdateAThroughChild();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Invokes the 'UpdateAThroughParent' method of the specified <see cref="EntityA"/> entity.
 /// </summary>
 /// <param name="entityA">The <see cref="EntityA"/> entity instance.</param>
 public void UpdateAThroughParent(EntityA entityA)
 {
     entityA.UpdateAThroughParent();
 }
Ejemplo n.º 8
0
 public void UpdateAThroughParent(EntityA entityA)
 {
     // Do nothing
 }
Ejemplo n.º 9
0
 public void UpdateAThroughChild(EntityA entityA)
 {
     // Do nothing
 }