楼主: cmwei333
7868 77

C# 6 for Programmers (2016, 6th Edition), 原版 PDF + EPUB   [推广有奖]

贵宾

泰斗

1%

还不是VIP/贵宾

-

TA的文库  其他...

【历史+心理学+社会自然科学】

【数学+统计+计算机编程】

【金融+经济+商学+国际政治】

威望
6
论坛币
3566819 个
通用积分
717.2193
学术水平
4324 点
热心指数
4647 点
信用等级
3954 点
经验
362256 点
帖子
9826
精华
9
在线时间
2842 小时
注册时间
2015-2-9
最后登录
2017-1-29

初级热心勋章 中级热心勋章 高级热心勋章 初级信用勋章 中级信用勋章 初级学术勋章 特级热心勋章 中级学术勋章 高级信用勋章 高级学术勋章 特级学术勋章 特级信用勋章

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
C# 6 for Programmers (6th Edition) (Deitel Developer Series)

by Paul J. Deitel (Author), Harvey Deitel (Author)

cover.jpg

The professional programmer’s Deitel® guide to C# 6 and object-oriented development for Windows®

Written for programmers with a background in high-level language programming, C# 6 for Programmers applies the Deitel signature live-code approach to teaching programming and explores Microsoft’s C# 6 and .NET in depth. Concepts are presented in the context of 170+ fully coded and tested apps, complete with syntax shading, code highlighting, code walkthroughs, program outputs and hundreds of savvy software-development tips.

Start with an introduction to C# using an early classes and objects approach, then rapidly move on to more advanced topics, including LINQ, asynchronous programming with async and await and more. You’ll enjoy the treatment of object-oriented programming and an object-oriented design/UML® ATM case study, including a complete C# implementation. When you’ve mastered the book, you’ll be ready to start building industrial-strength, object-oriented C# apps.

Paul Deitel and Harvey Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages authoring and corporate training organization. Millions of people worldwide have used Deitel textbooks, professional books, LiveLessons™ video products, e-books, resource centers and REVEL™ interactive multimedia courses with integrated labs and assessment to master major programming languages and platforms, including C#, C++, C, Java™, Android™ app development, iOS app development, Swift™, Visual Basic®, Python™ and Internet and web programming.

Features:
Use with Windows® 7, 8 or 10.
Integrated coverage of new C# 6 functionality: string interpolation, expression-bodied methods and properties, auto- implemented property initializers, getter-only properties, nameof, null-conditional operator, exception filters and more.
Entertaining and challenging code examples.
Deep treatment of classes, objects, inheritance, polymorphism and interfaces.
Generics, LINQ and generic collections; PLINQ (Parallel LINQ) for multicore performance.
Asynchronous programming with async and await; functional programming with lambdas, delegates and immutability.
Files; relational database with LINQ to Entities.
Object-oriented design ATM case study with full code implementation.
Emphasis on performance and software engineering principles.

原版 PDF + EPUB:

本帖隐藏的内容

原版 PDF:
C# 6 for Programmers (6th Edition).pdf (28.49 MB, 需要: 20 个论坛币)

EPUB:
C# 6 for Programmers (6th Edition).epub (75.88 MB, 需要: 20 个论坛币)



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Programmers Programmer Programme Program Edition background Microsoft presented Windows applies

已有 3 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
2010517155lpq + 50 + 1 + 4 + 4 精彩帖子
accumulation + 100 + 1 + 1 + 1 精彩帖子
Nicolle + 100 + 100 精彩帖子

总评分: 经验 + 250  论坛币 + 100  学术水平 + 2  热心指数 + 5  信用等级 + 5   查看全部评分

本帖被以下文库推荐

bbs.pinggu.org/forum.php?mod=collection&action=view&ctid=3257
bbs.pinggu.org/forum.php?mod=collection&action=view&ctid=3258
bbs.pinggu.org/forum.php?mod=collection&action=view&ctid=3259
沙发
fengyg 企业认证  发表于 2016-11-1 08:25:24 |只看作者 |坛友微信交流群
  1. 1   // Fig. 4.1: AccountTest.cs
  2. 2   // Creating and manipulating an Account object.
  3. 3   using System;
  4. 4
  5. 5   class AccountTest
  6. 6   {
  7. 7      static void Main()
  8. 8      {
  9. 9         // create an Account object and assign it to myAccount
  10. 10         Account myAccount = new Account();
  11. 11
  12. 12         // display myAccount's initial name (there isn't one yet)
  13. 13         Console.WriteLine($"Initial name is: {myAccount.GetName()}");
  14. 14
  15. 15         // prompt for and read the name, then put the name in the object
  16. 16         Console.Write("Enter the name: "); // prompt
  17. 17         string theName = Console.ReadLine(); // read the name
  18. 18         myAccount.SetName(theName); // put theName in the myAccount object
  19. 19
  20. 20         // display the name stored in the myAccount object
  21. 21         Console.WriteLine($"myAccount's name is: {myAccount.GetName()}");
  22. 22      }
  23. 23   }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

藤椅
lhf8059 发表于 2016-11-1 08:38:07 |只看作者 |坛友微信交流群

4.2

  1. 1   // Fig. 4.2: Account.cs
  2. 2   // A simple Account class that contains a private instance
  3. 3   // variable name and public methods to Set and Get name's value.
  4. 4
  5. 5   class Account
  6. 6   {
  7. 7      private string name; // instance variable
  8. 8
  9. 9      // method that sets the account name in the object
  10. 10      public void SetName(string accountName)           
  11. 11      {                                                
  12. 12         name = accountName; // store the account name  
  13. 13      }                                                
  14. 14
  15. 15      // method that retrieves the account name from the object      
  16. 16      public string GetName()                                       
  17. 17      {                                                              
  18. 18         return name; // returns name's value to this method's caller
  19. 19      }                                                              
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

板凳
kuailemyt 发表于 2016-11-1 08:40:19 |只看作者 |坛友微信交流群

4.5

  1. 1   // Fig. 4.5: AccountTest.cs
  2. 2   // Creating and manipulating an Account object with properties.
  3. 3   using System;
  4. 4
  5. 5   class AccountTest
  6. 6   {
  7. 7      static void Main()
  8. 8      {
  9. 9         // create an Account object and assign it to myAccount
  10. 10         Account myAccount = new Account();
  11. 11
  12. 12         // display myAccount's initial name
  13. 13         Console.WriteLine($"Initial name is: {myAccount.Name}");
  14. 14
  15. 15         // prompt for and read the name, then put the name in the object
  16. 16         Console.Write("Please enter the name: "); // prompt
  17. 17         string theName = Console.ReadLine(); // read a line of text
  18. 18         myAccount.Name = theName; // put theName in myAccount's Name
  19. 19
  20. 20         // display the name stored in object myAccount
  21. 21         Console.WriteLine($"myAccount's name is: {myAccount.Name}");
  22. 22      }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

报纸
chenyouliang 发表于 2016-11-1 08:58:25 |只看作者 |坛友微信交流群
  1. 1   // Fig. 4.6: Account.cs
  2. 2   // Account class that replaces public methods SetName
  3. 3   // and GetName with a public Name property.
  4. 4
  5. 5   class Account
  6. 6   {
  7. 7      private string name; // instance variable
  8. 8
  9. 9      // property to get and set the name instance variable               
  10. 10      public string Name                                                  
  11. 11      {                                                                  
  12. 12         get // returns the corresponding instance variable's value      
  13. 13         {                                                               
  14. 14            return name; // returns the value of name to the client code  
  15. 15         }                                                               
  16. 16         set // assigns a new value to the corresponding instance variable
  17. 17         {                                                               
  18. 18            name = value; // value is implicitly declared and initialized
  19. 19         }                                                               
  20. 20      }                                                                  
  21. 21   }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

地板
亚米UM 发表于 2016-11-1 09:04:00 |只看作者 |坛友微信交流群

4.8

  1. 1   // Fig. 4.8: Account.cs
  2. 2   // Account class with a constructor that initializes an Account's name.
  3. 3
  4. 4   class Account
  5. 5   {
  6. 6      public string Name { get; set; } // auto-implemented property
  7. 7
  8. 8      // constructor sets the Name property to parameter accountName's value
  9. 9      public Account(string accountName) // constructor name is class name  
  10. 10      {                                                                     
  11. 11         Name = accountName;                                                
  12. 12      }                                                                     
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

7
franky_sas 发表于 2016-11-1 11:51:15 |只看作者 |坛友微信交流群

4.9

  1. 1   // Fig. 4.9: AccountTest.cs
  2. 2   // Using the Account constructor to set an Account's name
  3. 3   // when an Account object is created.
  4. 4   using System;
  5. 5
  6. 6   class AccountTest
  7. 7   {
  8. 8      static void Main()
  9. 9      {
  10. 10         // create two Account objects
  11. 11         Account account1 = new Account("Jane Green");
  12. 12         Account account2 = new Account("John Blue");
  13. 13
  14. 14         // display initial value of name for each Account
  15. 15         Console.WriteLine($"account1 name is: {account1.Name}");
  16. 16         Console.WriteLine($"account2 name is: {account2.Name}");
  17. 17      }
  18. 18   }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

8
hkswen 发表于 2016-11-1 16:14:22 |只看作者 |坛友微信交流群

4.11

  1. 1   // Fig. 4.11: Account.cs
  2. 2   // Account class with a balance and a Deposit method.
  3. 3
  4. 4   class Account
  5. 5   {
  6. 6      public string Name { get; set; } // auto-implemented property
  7. 7      private decimal balance; // instance variable
  8. 8
  9. 9      // Account constructor that receives two parameters
  10. 10      public Account(string accountName, decimal initialBalance)
  11. 11      {
  12. 12         Name = accountName;
  13. 13         Balance = initialBalance; // Balance's set accessor validates
  14. 14      }
  15. 15
  16. 16      // Balance property with validation
  17. 17      public decimal Balance
  18. 18      {
  19. 19         get
  20. 20         {
  21. 21            return balance;
  22. 22         }
  23. 23         private set // can be used only within the class                  
  24. 24         {                                                                 
  25. 25             // validate that the balance is greater than 0.0; if it's not,
  26. 26             // instance variable balance keeps its prior value            
  27. 27             if (value > 0.0m) // m indicates that 0.0 is a decimal literal
  28. 28             {                                                            
  29. 29                balance = value;                                          
  30. 30             }                                                            
  31. 31         }                                                                 
  32. 32      }
  33. 33
  34. 34      // method that deposits (adds) only a valid amount to the balance
  35. 35      public void Deposit(decimal depositAmount)                        
  36. 36      {                                                                 
  37. 37          if (depositAmount > 0.0m) // if the depositAmount is valid   
  38. 38          {                                                            
  39. 39             Balance = Balance + depositAmount; // add it to the balance
  40. 40          }                                                            
  41. 41      }                                                                 
  42. 42   }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

9
mike68097 发表于 2016-11-2 00:07:25 |只看作者 |坛友微信交流群
  1. 1   // Fig. 4.12: AccountTest.cs
  2. 2   // Reading and writing monetary amounts with Account objects.
  3. 3   using System;
  4. 4
  5. 5   class AccountTest
  6. 6   {
  7. 7      static void Main()
  8. 8      {
  9. 9         Account account1 = new Account("Jane Green", 50.00m);
  10. 10         Account account2 = new Account("John Blue", –7.53m);
  11. 11
  12. 12         // display initial balance of each object
  13. 13         Console.WriteLine(
  14. 14            $"{account1.Name}'s balance: {account1.Balance:C}");
  15. 15         Console.WriteLine(
  16. 16            $"{account2.Name}'s balance: {account2.Balance:C}");
  17. 17
  18. 18         // prompt for then read input
  19. 19         Console.Write("\nEnter deposit amount for account1: ");
  20. 20         decimal depositAmount = decimal.Parse(Console.ReadLine());
  21. 21         Console.WriteLine(
  22. 22            $"adding {depositAmount:C} to account1 balance\n");
  23. 23         account1.Deposit(depositAmount); // add to account1's balance
  24. 24
  25. 25         // display balances
  26. 26         Console.WriteLine(
  27. 27            $"{account1.Name}'s balance: {account1.Balance:C}");
  28. 28         Console.WriteLine(
  29. 29            $"{account2.Name}'s balance: {account2.Balance:C}");
  30. 30
  31. 31         // prompt for then read input
  32. 32         Console.Write("\nEnter deposit amount for account2: ");
  33. 33         depositAmount = decimal.Parse(Console.ReadLine());
  34. 34         Console.WriteLine(
  35. 35            $"adding {depositAmount:C} to account2 balance\n");
  36. 36         account2.Deposit(depositAmount); // add to account2's balance
  37. 37
  38. 38         // display balances
  39. 39         Console.WriteLine(
  40. 40            $"{account1.Name}'s balance: {account1.Balance:C}");
  41. 41         Console.WriteLine(
  42. 42            $"{account2.Name}'s balance: {account2.Balance:C}");
  43. 43      }
  44. 44   }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

10
tosmh 发表于 2016-11-2 08:43:17 |只看作者 |坛友微信交流群

5.4

  1. 1   // Fig. 5.4: Student.cs
  2. 2   // Student class that stores a student name and average.
  3. 3   using System;
  4. 4
  5. 5   class Student
  6. 6   {
  7. 7      public string Name { get; set; } // property
  8. 8      private int average; // instance variable
  9. 9
  10. 10      // constructor initializes Name and Average properties
  11. 11      public Student(string studentName, int studentAverage)
  12. 12      {
  13. 13         Name = studentName;
  14. 14         Average = studentAverage; // sets average instance variable
  15. 15      }
  16. 16
  17. 17      // property to get and set instance variable average
  18. 18      public int Average
  19. 19      {
  20. 20         get // returns the Student's average
  21. 21         {
  22. 22            return average;
  23. 23         }
  24. 24         set  // sets the Student's average
  25. 25         {
  26. 26            // validate that value is > 0 and <= 100; otherwise,
  27. 27            // keep instance variable average's current value
  28. 28            if (value > 0)                                       
  29. 29            {                                                   
  30. 30               if (value <= 100)                                 
  31. 31               {                                                
  32. 32                  average = value; // assign to instance variable
  33. 33               }                                                
  34. 34            }                                                   
  35. 35         }
  36. 36      }
  37. 37
  38. 38      // returns the Student's letter grade, based on the average
  39. 39      string LetterGrade
  40. 40      {
  41. 41         get
  42. 42         {
  43. 43            string letterGrade = string.Empty; // string.Empty is ""
  44. 44
  45. 45            if (average >= 90)     
  46. 46            {                     
  47. 47               letterGrade = "A";  
  48. 48            }                     
  49. 49            else if (average >= 80)
  50. 50            {                     
  51. 51               letterGrade = "B";  
  52. 52            }                     
  53. 53            else if (average >= 70)
  54. 54            {                     
  55. 55               letterGrade = "C";  
  56. 56            }                     
  57. 57            else if (average >= 60)
  58. 58            {                     
  59. 59               letterGrade = "D";  
  60. 60            }                     
  61. 61            else                  
  62. 62            {                     
  63. 63               letterGrade = "F";  
  64. 64            }                     
  65. 65
  66. 66            return letterGrade;
  67. 67         }
  68. 68      }
  69. 69   }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-19 19:29