Enviar pesquisa
Carregar
Expression 的介紹及應用
•
Transferir como PPTX, PDF
•
0 gostou
•
501 visualizações
L
LearningTech
Seguir
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 10
Baixar agora
Recomendados
Samiksha january march 2014
Samiksha january march 2014
Samyik Samiksha
Case study
Case study
Steven Ruddy
Curso ExtJS 4 - Aula 27: Ext.window.Window
Curso ExtJS 4 - Aula 27: Ext.window.Window
Loiane Groner
Lecciones de la industria informática
Lecciones de la industria informática
Johana Villarreal Nuñez
Déus olímpics
Déus olímpics
Martineeh
CR7
CR7
pachenillo
Semana14
Semana14
Oscar Velez
Pp
Pp
vry97
Recomendados
Samiksha january march 2014
Samiksha january march 2014
Samyik Samiksha
Case study
Case study
Steven Ruddy
Curso ExtJS 4 - Aula 27: Ext.window.Window
Curso ExtJS 4 - Aula 27: Ext.window.Window
Loiane Groner
Lecciones de la industria informática
Lecciones de la industria informática
Johana Villarreal Nuñez
Déus olímpics
Déus olímpics
Martineeh
CR7
CR7
pachenillo
Semana14
Semana14
Oscar Velez
Pp
Pp
vry97
Inovação é A Solução
Inovação é A Solução
SEBRAE MS
Projeto sem apresentacao feira_do_empreendedor
Projeto sem apresentacao feira_do_empreendedor
SEBRAE MS
Caderno de tarefas_do_conselheiro
Caderno de tarefas_do_conselheiro
Roseli Macedo Leal
COSME-leaflet-ES
COSME-leaflet-ES
Reyes Castillo Fernandez
Semana14
Semana14
Oscar Velez
Perspectivas Economia PetróLeo Setembro 2009 Resumido
Perspectivas Economia PetróLeo Setembro 2009 Resumido
Aloizio Mercadante
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
Mais conteúdo relacionado
Destaque
Inovação é A Solução
Inovação é A Solução
SEBRAE MS
Projeto sem apresentacao feira_do_empreendedor
Projeto sem apresentacao feira_do_empreendedor
SEBRAE MS
Caderno de tarefas_do_conselheiro
Caderno de tarefas_do_conselheiro
Roseli Macedo Leal
COSME-leaflet-ES
COSME-leaflet-ES
Reyes Castillo Fernandez
Semana14
Semana14
Oscar Velez
Perspectivas Economia PetróLeo Setembro 2009 Resumido
Perspectivas Economia PetróLeo Setembro 2009 Resumido
Aloizio Mercadante
Destaque
(6)
Inovação é A Solução
Inovação é A Solução
Projeto sem apresentacao feira_do_empreendedor
Projeto sem apresentacao feira_do_empreendedor
Caderno de tarefas_do_conselheiro
Caderno de tarefas_do_conselheiro
COSME-leaflet-ES
COSME-leaflet-ES
Semana14
Semana14
Perspectivas Economia PetróLeo Setembro 2009 Resumido
Perspectivas Economia PetróLeo Setembro 2009 Resumido
Mais de LearningTech
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
Expression tree
Expression tree
LearningTech
Vic weekly learning_20160325
Vic weekly learning_20160325
LearningTech
D3js learning tips
D3js learning tips
LearningTech
git command
git command
LearningTech
Mais de LearningTech
(20)
vim
vim
PostCss
PostCss
ReactJs
ReactJs
Docker
Docker
Semantic ui
Semantic ui
node.js errors
node.js errors
Process control nodejs
Process control nodejs
Expression tree
Expression tree
SQL 效能調校
SQL 效能調校
flexbox report
flexbox report
Vic weekly learning_20160504
Vic weekly learning_20160504
Reflection & activator
Reflection & activator
Peggy markdown
Peggy markdown
Node child process
Node child process
20160415ken.lee
20160415ken.lee
Peggy elasticsearch應用
Peggy elasticsearch應用
Expression tree
Expression tree
Vic weekly learning_20160325
Vic weekly learning_20160325
D3js learning tips
D3js learning tips
git command
git command
Expression 的介紹及應用
1.
Expression 的介紹及應用 2014/03/27 Bryan Lin
2.
Agenda • 什麼是 Expression •
Expression 的種類 • Expression 的應用
3.
什麼是 Expression • 在我們的程式碼裡面,所有的程式碼都可以使用
Expression 來組合 • 最常見的例子就是 Lambda Expression Expression<Func<int, bool>> lambda = num => num < 5;
4.
Expression 的種類
5.
Expression 的種類 • 其他種類請參考
MSDN 上面的說明: http://msdn.microsoft.com/enus/library/system.linq.expressions.asp x
6.
Expression 的應用 • 範例1:組合出
x = 1 的 Expression (x 的型別為 Int32) • 提示: 使用 Expression.Parameter 使用 Expression.Constant 使用 Expression.Equals
7.
Expression 的應用 • 解答: •
Expression left = Expression.Parameter(typeof(Int32), “x”); • Expression right = Expression.Constant(1); • Expression expression = Expression.Assign(left, right); • // x = 1
8.
Expression 的應用 • 範例2:製作一個
Extension Method,如下所示:
9.
Expression 的應用 • 解答:
10.
FAQ
Baixar agora