public static bool Equals(IParameterCollection list, params IType[] types) { int n = list.Count; if (types == null || types.Length == 0) { return(n == 0); } if (n != types.Length) { return(false); } return(list.Select(x => x.Type).EqualsTo(types, (x, y) => TypeEquals(x, y))); }
private IEnumerable <IParameter> Populate() { return(_source.Select(p => (IParameter) new ParameterProxy(p, GenericType.Resolve(_contextType, _contextMethod, p.Type)))); }