GetInstance() public static method

public static GetInstance ( object obj ) : Target
obj object
return Target
Example #1
0
 public virtual Target[] GetTargets()
 {
     Target[] array = new Target[this.targets.Count];
     for (int i = 0; i < this.targets.Count; i++)
     {
         array[i] = Target.GetInstance(this.targets[i]);
     }
     return(array);
 }
Example #2
0
        /**
         * Returns the targets in an <code>ArrayList</code>.
         * <p>
         * The ArrayList is cloned before it is returned.</p>
         *
         * @return Returns the targets.
         */
        public virtual Target[] GetTargets()
        {
            Target[] result = new Target[targets.Count];

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

            return(result);
        }