예제 #1
0
 /// <summary>
 /// 根据参数创建唯一标识
 /// </summary>
 /// <param name="parts"></param>
 /// <returns></returns>
 public static string CreateUniqueId(params object[] parts)
 {
     return(DescriptorUtil.CreateUniqueId((IEnumerable <object>)parts));
 }
예제 #2
0
 private ParameterDescriptor[] LazilyFetchParametersCollection()
 {
     return(DescriptorUtil.LazilyFetchOrCreateDescriptors <ParameterInfo, ParameterDescriptor>(ref this._parametersCache,
                                                                                               new Func <ParameterInfo[]>(this.MethodInfo.GetParameters),
                                                                                               (ParameterInfo parameterInfo) => new ParameterDescriptor(parameterInfo, this)));
 }