E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
ienumerable
也来谈谈C#中的foreach和yield
C#编译器会把foreach语句转换为
IEnumerable
接口的方法和属性。
胡晅晖
·
2011-10-13 21:00
C#如何获取object对象的属性值
GetPropertyValue(object info, string field) { if (info == null) return null; Type t = info.GetType();
IEnumerable
sty2008boy
·
2011-09-27 14:00
object
C# 枚举器 手动实现枚举器 可枚举集合 枚举器操作 迭代器
语言中提供foreach查询操作,foreach大大的简化了要编写的代码,但是foreach只能用来遍历一个可枚举的集合(enumable),可枚举的集合就是实现了System.Collections.
IEnumerable
weixingstudio
·
2011-09-24 14:00
object
String
C#
null
Class
编译器
C# 枚举器 手动实现枚举器 可枚举集合 枚举器操作 迭代器
语言中提供foreach查询操作,foreach大大的简化了要编写的代码,但是foreach只能用来遍历一个可枚举的集合(enumable),可枚举的集合就是实现了System.Collections.
IEnumerable
weixingstudio
·
2011-09-24 14:00
object
String
C#
null
Class
编译器
Enumerable.Max
Method (
IEnumerable
, Func
)
class Pet { public string Name { get; set; } public int Age { get; set; } } public static void MaxEx4()
sty2008boy
·
2011-09-16 18:00
C#
[LINQ]
IEnumerable
接口 与 Enumerable扩展
publicinterfaceSystem.Collections.IEnumerablepublicinterfaceSystem.Collections.IEnumeratorpublicstaticclassEnumerableIEnumerable备注:此类型对应的泛型版本:System.Collections.Generic.
IEnumerable
icedmilk
·
2011-09-06 22:00
IEnumerable
IListIList,ICollection,
IEnumerable
祖宗:
IEnumerable
此接口只有一个方法GetEnumerator();是FrameWork为了实现迭代器模式设计的接口。
bestlxm
·
2011-09-02 10:00
IEnumerable
和 IQueryable 转化为DataTable
扩展方法:publicstaticDataTableConvertToDataTable(thisIEnumerableenumerable){ vardataTable=newDataTable(); foreach(PropertyDescriptorpdinTypeDescriptor.GetProperties(typeof(T))){ dataTable.Co
jinhuiSystem
·
2011-08-26 18:00
String
table
database
扩展
IEnumerable
IEnumerator 接口
一直以来,搞不懂
IEnumerable
与IEnumerator这两个接口的区别,今天看了一下MSDN并在网上搜了一把关于他们的区别,似乎理解了,但还是弄不懂他们最主要的区别是什么。
·
2011-08-26 02:00
enum
IEnumerable
IEnumerator
usingSystem; usingSystem.Collections.Generic; usingSystem.Collections; namespaceWroxBooks.chap05 { publicclassMainApp { publicstaticvoidMain() { Person[]people=newPerson[4]; people[0]=newPerson("sco
shuangyan5230
·
2011-08-18 13:00
LINQ基础之LINQ to Object
使用LINQ技术能显著简化查询集合的过程,不过要求集合对象必须实现
IEnumerable
泛型接口或者是
IEnumerable
接口。
wche1990
·
2011-08-09 10:00
object
String
server
asp
button
LINQ
用于LINQ to Objects的交互扩展
快速浏览交互扩展的API之后,我们发现,在System.Linq命名空间下有一组
IEnumerable
的扩展方法。
Jonathan Allen
·
2011-08-07 00:00
用于LINQ to Objects的交互扩展
快速浏览交互扩展的API之后,我们发现,在System.Linq命名空间下有一组
IEnumerable
的扩展方法。
Jonathan Allen
·
2011-08-07 00:00
解剖实体框架(5)--给实体管理类增加一点特色
summary> /// 扩展实体管理类 /// </summary> public static class EntityMgmtExtension { public static
IEnumerable
javasalatu
·
2011-08-05 22:00
框架
解剖实体框架(5)--给实体管理类增加一点特色
summary> /// 扩展实体管理类 /// </summary> public static class EntityMgmtExtension { public static
IEnumerable
iwebcode
·
2011-08-05 22:00
框架
解剖实体框架(5)--给实体管理类增加一点特色
summary> /// 扩展实体管理类 /// </summary> public static class EntityMgmtExtension { public static
IEnumerable
wodamazi
·
2011-08-05 22:00
框架
自己编写的泛型List
功能代码 欢迎高手指点
/// ///自定义List /// ///列表中元素的类型 classMyList:
IEnumerable
{ T[]t=newT[0]; publicMyList
贺俊峰
·
2011-07-28 20:42
list
泛型
职场
休闲
功能代码
IEnumerator和
IEnumerable
区别
IEnumerable
接口主要实现了GetEnumerator方法,该方法返回一个IEnumerator。一个类A实现
IEnumerable
接口后,调用foreach语法的时候,会自动的调用
cnn237111
·
2011-07-21 10:36
职场
休闲
IEnumerable
.Net
IEnumerator和
IEnumerable
区别
IEnumerable
接口主要实现了GetEnumerator方法,该方法返回一个IEnumerator。一个类A实现
IEnumerable
接口后,调用foreach语法的时候,会自动的调用
cnn237111
·
2011-07-21 10:36
职场
休闲
IEnumerable
IEnumerator
自定义ArrayList简单实现,供大家参考
usingSystem.Linq;usingSystem.Text;usingSystem.Collections;namespaceMyArrayList_hjf{ classMyArrayList:
IEnumerable
贺俊峰
·
2011-07-20 19:25
职场
ArrayList
休闲
自定义ArrayList简单实现,供大家参考
usingSystem.Linq;usingSystem.Text;usingSystem.Collections;namespaceMyArrayList_hjf{classMyArrayList:
IEnumerable
贺俊峰
·
2011-07-20 19:25
职场
ArrayList
休闲
Enumerable.Select
方法介绍
方法介绍完整签名为:publicstaticIEnumerableSelect( thisIEnumerablesource, Funcselector)注意以下几点:1,这是一个扩展方法,从
IEnumerable
cnn237111
·
2011-07-08 14:42
枚举
职场
休闲
拉姆达表达式
Rx 1.0解决了异步数据访问的问题
标准的迭代器模式以及它的基本接口
IEnumerable
和IEnumerator对于异步操作是不足够的,因此Rx通过引入观察者模式来解决这个问题,这个模式包含两个主要的接口,IObservable和IObserver
Abel Avram
·
2011-07-07 00:00
Rx 1.0解决了异步数据访问的问题
标准的迭代器模式以及它的基本接口
IEnumerable
和IEnumerator对于异步操作是不足够的,因此Rx通过引入观察者模式来解决这个问题,这个模式包含两个主要的接口,IObservable和IObserver
Abel Avram
·
2011-07-07 00:00
LINQ中
IEnumerable
接口主要成员简介
在LINQ中,数据源和查询结果实际上都是
IEnumerable
或IQueryable类型对象,所以可以通过使用普通对象的形式(调用方法、使用属性等)对数据源进行查询或使用查询结果数据。
Kasbaster
·
2011-07-06 10:00
String
float
byte
LINQ
output
Numbers
IEnumerable
与IEnumerator区别
http://www.cnblogs.com/bear831204/archive/2009/01/05/1369547.htmlhttp://www.cnblogs.com/illele/archive/2008/04/21/1164696.html
cnn237111
·
2011-07-01 22:18
.net
职场
休闲
IEnumerable
IEnumerator
简洁优雅的.net代码赏析
获取指定目录下所有的文件全路径: public
IEnumerable
< String > GetFiles( string dir) {  
·
2011-06-26 17:00
.net
IEnumerable
和IEnumerator区别
1、一个Collection要支持foreach方式的遍历,必须实现
IEnumerable
接口(亦即,必须以某种方式返回IEnumeratorobject)。
zyyjc
·
2011-06-22 05:00
wf中的IDictionary
现在简单介绍下IDictionaryIDictionary接口是所有字典类集合的基本接口,该接口与ICollection,
IEnumerable
接口是所有非泛型类集合的最基本的接口
IEnumerable
thebesttome
·
2011-06-19 10:00
编程
object
input
Dictionary
output
c# 集合深入讲解
Ø 在.Net中所有的集合都要实现ICollection,
IEnumerable
,ICloneable接口。除此之外还
comaple
·
2011-06-07 14:00
多线程
数据结构
.net
object
C#
float
集合
1.数组每个实例化的数组都继承于Array抽象类,Array抽象类实现了
IEnumerable
,ICollection,IList接口。其中不是每一个方法都实现了,没有实现的抛出异常。
xutao_ustc
·
2011-06-01 18:00
项目中的通用消息类的实现
本类继承了
IEnumerable
接口这后,支持了简单的遍历,方法将内部的消息输出,提供了两种索引器对它进行读取,数值为索引的和字符为索引的.
·
2011-05-31 16:00
实现
LINQ中
IEnumerable
接口主要成员简介
在LINQ中,数据源和查询结果实际上都是
IEnumerable
或IQueryable类型对象,所以可以通过使用普通对象的形式(调用方法、使用属性等)对数据源进行查询或使用查询结果数据。
xueer8835
·
2011-05-25 10:00
.net面试题
(2)能用foreach遍历访问的对象需要实现_
IEnumerable
接口或声明_GetEnumerator方法的类型。1.c#中的三元运算符是__?
wapysun
·
2011-05-13 10:00
.net
面试
ASP.net
VB.NET
ASP
string 类的扩展方法
string类的扩展方法列表(基本相同于
IEnumerable
接口的成员列表):Aggregate //是否都满足条件 Any // AsParallel // Average //
kongwei521
·
2011-05-11 18:00
object
String
asp.net
扩展
button
textbox
Entity Frame Work 4.1调用存储过程
create proc T_Get @ID varchar(10) Begin Select * from Course where id = @ID End public virtual
IEnumerable
baobeituping
·
2011-05-10 20:00
entity
IEnumerable
和IQueryable之我观
在弄明白
IEnumerable
和这两个东西之前,首先我们要清楚“LINQ查询操作中的类型关系”问题。引用MSDN的文字:1。
webcenterol
·
2011-04-20 10:00
query
Parallel.ForEach 方法
最简单的是下面这个ForEach(
IEnumerable
,Action)一个枚举器参数和一个Action委托。 staticvoidMain(st
cnn237111
·
2011-04-09 11:59
职场
休闲
parallel
Parallel.ForEach 方法
最简单的是下面这个ForEach(
IEnumerable
,Action)一个枚举器参数和一个Action委托。staticvoidMain(stri
cnn237111
·
2011-04-09 11:59
职场
休闲
Parallel
Parallel
[C#2] 5-迭代器
集合要支持foreach则需要实现System.Collections.
IEnumerable
接口[公开枚举数,该枚举数支持在非泛型集合
blackheart
·
2011-04-08 23:00
C#2.0_5-迭代器
集合要支持foreach则需要实现System.Collections.
IEnumerable
接口[公开枚举数,该枚举数支持在非泛型集合
乱舞春秋
·
2011-04-08 23:00
IEnumerable
.Select和SelectMany的区别
IEnumerable
在WindowsPhone7的程序上很常用,它允许开发人员定义foreach语句功能的实现并支持非泛型方法的简单迭代,下面主要分析一下
IEnumerable
.Select和
IEnumerable
.SelectMany
codefighting
·
2011-04-05 16:00
windows
String
C#
Class
phone
output
books
C#迭代器
摘要:迭代器是C#2.0中添加的功能,它能够使我们在类或结构中支持foreach迭代,而不必实现整个
IEnumerable
/
IEnumerable
接口。今天我们就一块看一下什么是c#中的迭代器吧。
jianxin160
·
2011-04-03 19:00
String
list
C#
Class
sun
编译器
C#迭代器
摘要:迭代器是C#2.0中添加的功能,它能够使我们在类或结构中支持foreach迭代,而不必实现整个
IEnumerable
/
IEnumerable
接口。今天我们就一块看一下什么是c#中的迭代器吧。
csstome
·
2011-04-03 19:00
迭代器
asp.net之listview学习笔记
通过vs的页面设置把页面的功能设置出来,(分页功能需要数据源的类型为
IEnumerable
),然后把数据源删除,该成手工精确赋值。 大致有编辑,删除,取消,插入。
xiaofancn
·
2011-03-29 21:00
.net
asp.net
asp
Windows Phone 7
IEnumerable
.Select和SelectMany的区别
IEnumerable
在WindowsPhone7的程序上很常用,它允许开发人员定义foreach语句功能的实现并支持非泛型方法的简单迭代,下面主要分析一下
IEnumerable
.Select和
IEnumerable
.SelectMany
linzheng
·
2011-03-27 16:00
windows
区别
phone
7
SelectMany
dd
关键字yield通常用于迭代器中,向
IEnumerable
对象提供值或者结束迭代。如: yieldreturnexpression; yieldbreak;var用于定义隐式类型的变量。
pandoraC
·
2011-03-25 09:49
职场
休闲
IEnumerable
asd
迭代器中
【转】
IEnumerable
和 IEnumerator 接口
类继承关系:public interface IQueryable<T> :
IEnumerable
<T>, IQueryable,
IEnumerable
。
shirlly
·
2011-03-04 17:00
LINQ
【WP7进阶】——扩展框架组件
扩展类别该组件是将我们日常常用到的数据类型或者集合等操作再一次封装成易于使用的静态方法,分类为如下几大类:String字符串扩展DateTime日期扩展Guid全局唯一标识符扩展
IEnumerable
集合扩展
ijavagos
·
2011-02-28 08:00
wp7
【WP7进阶】――扩展框架组件
扩展类别该组件是将我们日常常用到的数据类型或者集合等操作再一次封装成易于使用的静态方法,分类为如下几大类:String字符串扩展DateTime日期扩展Guid全局唯一标识符扩展
IEnumerable
集合扩展
terry_龙
·
2011-02-27 20:08
windows
win7
移动开发
phone
休闲
上一页
26
27
28
29
30
31
32
33
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他