Advertisement
Guest User

q15

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Collections;
  7.  
  8. namespace TestForTest
  9. {
  10.     class Set<T> : ICollection<T>
  11.     {
  12.         public int Count { get; set;  }
  13.         public bool IsReadOnly { get; set;  }
  14.  
  15.         /*
  16.         public Set Union(Set otherSet)
  17.         {
  18.             return otherSet;
  19.         }
  20.         */
  21.         public void Add(T item)
  22.         {
  23.  
  24.         }
  25.  
  26.         public void Clear()
  27.         {
  28.  
  29.         }
  30.  
  31.         public bool Contains(T item)
  32.         {
  33.  
  34.             return true;
  35.         }
  36.  
  37.         public void CopyTo(T[] array, int arrayIndex)
  38.         {
  39.  
  40.         }
  41.  
  42.         public bool Remove(T item)
  43.         {
  44.             return true;
  45.         }
  46.  
  47.  
  48.        
  49.     }
  50.  
  51.     class Program
  52.     {
  53.         static void Main(string[] args)
  54.         {
  55.            
  56.         }
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement