Example #1
0
 /// <summary>
 /// 根据值创建对象
 /// </summary>
 /// <param name="expectedType">期望的类型</param>
 /// <param name="throwError">是否抛出异常</param>
 /// <param name="paramTypes">构造函数的参数类型列表</param>
 /// <param name="paramValues">构造函数的参数列表</param>
 /// <returns>对象</returns>
 object IConverting.ToObject(Type expectedType, bool throwError, Type[] paramTypes, object[] paramValues)
 {
     return(TypeUtil.CreateObject(this.ConvertingValue, expectedType, throwError, paramTypes, paramValues));
 }
Example #2
0
 /// <summary>
 /// 根据值创建对象
 /// </summary>
 /// <param name="parameters">构造函数的参数</param>
 /// <returns>对象</returns>
 object IConverting.ToObject(params object[] parameters)
 {
     return(TypeUtil.CreateObject(this.ConvertingValue, null, true, parameters));
 }