看.net的内部
{
IEnumerator GetEnumerator();
}
public interface IEnumerator
{
object Current
{
get;
}
bool MoveNext();
void Reset();
}
public interface ICollection:IEnumerator
{
int Count{get; }
object SyncRoot{get;}
bool IsSynchronized{get;}
void CopyTo(Array array,int index);
}
public interface IList:ICollection,IEnumerator
{
object this[int index]
{
get;
set;
}
bool IsReadOnly
{
get;
}
bool IsFixedSize
{
get;
}
int Add(object value);
bool Contains(object value);
void Clear();
int IndexOf(object value);
void Insert(int index,object value);
void Remove(object value);
void RemoveAt(int index);
}
如上,想看到.NET类的内部,可以通过.NET Framework 工具“WinCV.exe”、WebMatrix;如果想看每个方法的源码,再装上Reflector就可以了!
浙公网安备 33010602011771号