/// <summary> /// 创建指定转换的迭代器。 /// </summary> /// <param name="enumerable">原迭代器</param> /// <param name="asValue">转换委托</param> public AsEnumerate(IEnumerable <TSource> enumerable, Func <TSource, TDestination> asValue) { this.enumerable = enumerable; this.asValue = new DelegateAsValue(asValue); }
private AsEnumerate(IEnumerator <TSource> enumerator, IAsValue asValue) { this.enumerator = enumerator; this.asValue = asValue; }
/// <summary> /// 创建指定转换的迭代器。 /// </summary> /// <param name="enumerable">原迭代器</param> /// <param name="asValue">转换接口实现</param> public AsEnumerate(IEnumerable <TSource> enumerable, IAsValue asValue) { this.enumerable = enumerable; this.asValue = asValue; }