using System.Runtime.InteropServices;namespace System.Collections{ // 摘要: // Exposes the enumerator, which supports a simple iteration over a non-generic // collection. [ComVisible(true)] //[1] 这个标志是什么意思 [Guid("496B0ABE-CDEE-11d3-88E8-00902754C43A")] //[2] 这个标志是什么意思 public interface IEnumerable { // 摘要: // Returns an enumerator that iterates through a collection. // // 返回结果: // An System.Collections.IEnumerator object that can be used to iterate through // the collection. [DispId(-4)] //[3] 这个标志是什么意思 IEnumerator GetEnumerator(); }}
谁能说说? 谢谢了!!!!!
说说 那三处? //[1] //[2] //[3]
[解决办法] [ComVisible(true)] //[1] 这个标志是什么意思 com 可见 [Guid("496B0ABE-CDEE-11d3-88E8-00902754C43A")] //[2] 这个标志是什么意思 这个接口的guid ,因为com 那时还没有 .net ,类型信息要用 guid 来查找 public interface IEnumerable { // 摘要: // Returns an enumerator that iterates through a collection. // // 返回结果: // An System.Collections.IEnumerator object that can be used to iterate through // the collection. [DispId(-4)] //[3] 这个标志是什么意思 跟自动话有关,具体查idispatch 接口