Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace SmartRobot
  5. {
  6. public class ArrayMaxChip : IChip<int>
  7. {
  8. public ArrayMaxChip()
  9. {
  10. ChipName = "Max-Chip";
  11. }
  12.  
  13. public string ChipName { get; set; }
  14.  
  15. public int Calculate(int[] numArray)
  16. {
  17. return numArray.Max();
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement