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