GetInstance() public static method

public static GetInstance ( object obj ) : Targets
obj object
return Targets
Ejemplo n.º 1
0
 public virtual Targets[] GetTargetsObjects()
 {
     Targets[] array = new Targets[targets.Count];
     for (int i = 0; i < targets.Count; i++)
     {
         array[i] = Targets.GetInstance(targets[i]);
     }
     return(array);
 }
Ejemplo n.º 2
0
        /**
         * Returns the targets in this target information extension.
         * <p>
         * The ArrayList is cloned before it is returned.</p>
         *
         * @return Returns the targets.
         */
        public virtual Targets[] GetTargetsObjects()
        {
            Targets[] result = new Targets[targets.Count];

            for (int i = 0; i < targets.Count; ++i)
            {
                result[i] = Targets.GetInstance(targets[i]);
            }

            return(result);
        }