I was looking at the Class definition of System.Array
class which implements following interfaces ICloneable, IList, ICollection, IEnumerable, IStructuralComparable, IStructuralEquatable
. I realized that this class doesn't implements all properties/methods define the interfaces, which it is implementing.
Eg. IList interface has following declaration:
public interface IList : ICollection, IEnumerable
{
object this[int index] { get; set; }
bool IsFixedSize { get; }
bool IsReadOnly { get; }
int Add(object value);
void Clear();
bool Contains(object value);
int IndexOf(object value);
void Insert(int index, object value);
void Remove(object value);
void RemoveAt(int index);
}
However System.Array
class implements only following properties from IList
interface:
public bool IsFixedSize { get; }
public bool IsReadOnly { get; }
Please help me out here.