Ejemplo n.º 1
0
 private T GetT()
 {
     if (TheConstructor != null)
     {
         return((T)TheConstructor.Invoke(Param));
     }
     return(new T());
 }
Ejemplo n.º 2
0
        private T GetT()
        {
            T x;

            if (TheConstructor != null)
            {
                x = (T)TheConstructor.Invoke(Param);
            }
            else
            {
                x = new T();
            }

            if (ObjectCreateRunTime != null)
            {
                x = ObjectCreateRunTime(x, this);
            }

            return(x);
        }