SlideShare ist ein Scribd-Unternehmen logo
1 von 12
LINQ 動動腦
By Anney
Q1
• Input
• Output

2013/12/6

2
ANS
• Foreach
• Lamda expression
• Query expression

2013/12/6

3
ANS - foreach

2013/12/6

4
ANS – Lamda expression

2013/12/6

5
ANS – Query expression

2013/12/6

6
Q2
• 使用 LinQ 列舉所有的排列組合
• 尺寸: L, M, S 三種
• 顏色: 黑, 白 兩種
• output: 黑/L、黑/M、黑/S、白/L、白/M、白/S 共 2*3=6 種;

• 若再加上 長袖, 短袖 屬性
• output: 2*3*2 共 12 種, 黑/L/長袖、黑/L/短袖...

2013/12/6

7
ANS
• Fixed items
• Dynamic items

2013/12/6

8
ANS – Fixed items

2013/12/6

9
ANS – Dynamic items ??

2013/12/6

10
ANS – Dynamic items

2013/12/6

11
~ THE END ~

2013/12/6

12

Weitere ähnliche Inhalte

Andere mochten auch

20120525 equal identically_equal
20120525 equal identically_equal20120525 equal identically_equal
20120525 equal identically_equalLearningTech
 
Exception handling in asp.net
Exception handling in asp.netException handling in asp.net
Exception handling in asp.netLearningTech
 
Design pattern proxy介紹 20130805
Design pattern proxy介紹 20130805Design pattern proxy介紹 20130805
Design pattern proxy介紹 20130805LearningTech
 
Intro to trigger and constraint
Intro to trigger and constraintIntro to trigger and constraint
Intro to trigger and constraintLearningTech
 
Introduction of lambda expression and predicate builder
Introduction of lambda expression and predicate builderIntroduction of lambda expression and predicate builder
Introduction of lambda expression and predicate builderLearningTech
 

Andere mochten auch (8)

Mvc3 razor
Mvc3 razorMvc3 razor
Mvc3 razor
 
Absolute layout
Absolute layoutAbsolute layout
Absolute layout
 
20120525 equal identically_equal
20120525 equal identically_equal20120525 equal identically_equal
20120525 equal identically_equal
 
Exception handling in asp.net
Exception handling in asp.netException handling in asp.net
Exception handling in asp.net
 
expression tree
expression treeexpression tree
expression tree
 
Design pattern proxy介紹 20130805
Design pattern proxy介紹 20130805Design pattern proxy介紹 20130805
Design pattern proxy介紹 20130805
 
Intro to trigger and constraint
Intro to trigger and constraintIntro to trigger and constraint
Intro to trigger and constraint
 
Introduction of lambda expression and predicate builder
Introduction of lambda expression and predicate builderIntroduction of lambda expression and predicate builder
Introduction of lambda expression and predicate builder
 

Mehr von LearningTech

Mehr von LearningTech (20)

vim
vimvim
vim
 
PostCss
PostCssPostCss
PostCss
 
ReactJs
ReactJsReactJs
ReactJs
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
flexbox report
flexbox reportflexbox report
flexbox report
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection & activator
Reflection & activatorReflection & activator
Reflection & activator
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Expression tree
Expression treeExpression tree
Expression tree
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 

linq 動動腦