37. 検索コントラクト – C#
public class Book
{
public string Title { get; set; }
public Uri Url { get; set; }
public override string ToString()
{ return Title; }
}
38. 検索コントラクト – C#
public class Model : IEnumerable<Book>
{
static readonly Model instance = new Model();
public static IEnumerable<Book> Search(string queryText) // 検索時に呼ばれる
{ return instance.Where(book => book.Title.Contains(queryText)); }
public IEnumerator<Book> GetEnumerator()
{
yield return new Book { Title = "基礎から学ぶ Windowsストアアプリ開発",
Url = new Uri("http://www.amazon.co.jp/dp/4863541198/") };
yield return new Book { Title = "Windows8ストアアプリ開発入門",
Url = new Uri("http://www.amazon.co.jp/dp/4798035440/") };
yield return new Book { Title = "Windowsストアアプリ開発入門",
Url = new Uri("http://www.amazon.co.jp/dp/4774155012/") };
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{ return GetEnumerator(); }
}
66. 対処: プライバシーポリシー
Privacy Policy
Sho's Software takes the privacy of its users very respectfully. We also comply fully with the Act on the
Protection of Personal Information.
Sho's Software does not collect personally identifiable information (e.g., name, address, telephone
number, e-mail address) unless you provide it to us.