Ejemplo n.º 1
0
        protected object Process(ParameterInfo info, GroupCollection groups)
        {
            if (info.ParameterType == typeof(GroupCollection)) {
            return groups;
              } else if (info.ParameterType == typeof(string)) {
            return groups.Get(info.Name);
              } else {
            if (HasTryParse(info.ParameterType)) {
              string str = groups.Get(info.Name);
              if (str == null) {
            return null;
              } else {
            object o;
            if (TryParse(info.ParameterType, str, out o)) {
              return o;
            } else {
              return null;
            }
              }

            }
            return null;
              }
        }