BookInfo.cs
上传用户:linger1010
上传日期:2008-12-08
资源大小:561k
文件大小:1k
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DealWithScreenOrientation
- {
- struct BookInfo
- {
- public string ISBN;
- public string Title;
- public string Author;
- public string Publisher;
- public decimal Price;
- public BookInfo(string isbn, string title, string author, string publisher, decimal price)
- {
- this.ISBN = isbn;
- this.Title = title;
- this.Author = author;
- this.Publisher = publisher;
- this.Price = price;
- }
- private static BookInfo[] ms_books= new BookInfo[]
- {
- new BookInfo("7-111-11210-5", "Writing Secure Code (2nd Edition)", "Michael Howard", "Microsoft Press", 55.00m),
- new BookInfo("7-111-12481-2", "Inside Microsoft .NET IL Assembler", "Serge Lidin", "Microsoft Press", 45.00m),
- new BookInfo("7-302-05947-0", "Network Programming For Microsoft Windows", "Anthony Jones", "Microsoft Press", 78.00m),
- new BookInfo("7-302-07509-3", "Applied Microsoft .NET Framework Programming", "Jeffrey Richter", "Wintellect", 68.00m),
- new BookInfo("7-302-06091-6", "GDI+ Programming: Creating Custom Controls Using C#", "Eric White", "Wrox", 58.00m),
- new BookInfo("7-302-05750-8", "Professional ASP.NET Server Controls Building Custom Controls with C#", "Matt Butler", "Wrox", 48.00m),
- };
- public static BookInfo[] Books
- {
- get
- {
- return ms_books;
- }
- }
- }
- }