Guest User

Untitled

a guest
Apr 21st, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.18 KB | None | 0 0
  1. namespace Interface
  2. {
  3.     class Lista : IList
  4.     {
  5.         private object[] zawartosc = new object[8];
  6.         private int licznik;
  7.  
  8.         public Lista()
  9.         {
  10.             licznik = 0;
  11.         }
  12.  
  13.         public int Add(object wartosc)
  14.         {
  15.             if (licznik < zawartosc.Length)
  16.             {
  17.                 zawartosc[licznik] = wartosc;
  18.                 licznik++;
  19.             }
  20.             return (licznik - 1);
  21.         }
  22.  
  23.         public void Clear()
  24.         {
  25.             licznik = 0;
  26.         }
  27.  
  28.         public bool Contains(object value)
  29.         {
  30.             throw new NotImplementedException();
  31.         }
  32.  
  33.         public int IndexOf(object value)
  34.         {
  35.             throw new NotImplementedException();
  36.         }
  37.  
  38.         public void Insert(int index, object value)
  39.         {
  40.             throw new NotImplementedException();
  41.         }
  42.  
  43.         public bool IsFixedSize
  44.         {
  45.             get { throw new NotImplementedException(); }
  46.         }
  47.  
  48.         public bool IsReadOnly
  49.         {
  50.             get { throw new NotImplementedException(); }
  51.         }
  52.  
  53.         public void Remove(object value)
  54.         {
  55.             throw new NotImplementedException();
  56.         }
  57.  
  58.         public void RemoveAt(int index)
  59.         {
  60.             throw new NotImplementedException();
  61.         }
  62.  
  63.         public object this[int index]
  64.         {
  65.             get
  66.             {
  67.                 throw new NotImplementedException();
  68.             }
  69.             set
  70.             {
  71.                 throw new NotImplementedException();
  72.             }
  73.         }
  74.  
  75.         public void CopyTo(Array array, int index)
  76.         {
  77.             throw new NotImplementedException();
  78.         }
  79.  
  80.         public int Count
  81.         {
  82.             get { throw new NotImplementedException(); }
  83.         }
  84.  
  85.         public bool IsSynchronized
  86.         {
  87.             get { throw new NotImplementedException(); }
  88.         }
  89.  
  90.         public object SyncRoot
  91.         {
  92.             get { throw new NotImplementedException(); }
  93.         }
  94.  
  95.         public IEnumerator GetEnumerator()
  96.         {
  97.             throw new NotImplementedException();
  98.         }
  99.     }
  100. }
Add Comment
Please, Sign In to add comment