annotate Demo/Linq/OverWCF/DemoService.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author |
cin |
date |
Tue, 10 Mar 2015 16:02:11 +0300 |
parents |
f990fcb411a9 |
children |
|
rev |
line source |
0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.ServiceModel;
|
|
4
|
|
5 namespace Linq.OverWCF
|
|
6 {
|
|
7 [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
|
|
8 public class DemoService : IDemoService
|
|
9 {
|
|
10 public IEnumerable<string> DemoMethod(string str)
|
|
11 {
|
|
12 foreach (var ch in str)
|
|
13 {
|
|
14 yield return ch.ToString();
|
|
15 }
|
|
16 }
|
|
17 }
|
|
18 }
|