GetInstance() public static method

public static GetInstance ( object obj ) : Target
obj object
return Target
コード例 #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);
 }
コード例 #2
0
ファイル: Targets.cs プロジェクト: abdullah-raja/DBProject
        /**
         * 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);
        }