Horje
c# implement ienumerable t Code Example
c# implement ienumerable t
using System.Collections;

class MyObjects : IEnumerable<MyObject>
{
    List<MyObject> mylist = new List<MyObject>();

    public MyObject this[int index]  
    {  
        get { return mylist[index]; }  
        set { mylist.Insert(index, value); }  
    } 

    public IEnumerator<MyObject> GetEnumerator()
    {
        return mylist.GetEnumerator();
    }

    IEnumerator IEnumerable.GetEnumerator()
    {
        return this.GetEnumerator();
    }
}




Csharp

Related
c# lose 0 when converting Code Example c# lose 0 when converting Code Example
c# i lose 0 when converting int to string Code Example c# i lose 0 when converting int to string Code Example
c# template Code Example c# template Code Example
c# get all namespaces in assembly Code Example c# get all namespaces in assembly Code Example
is keyboard clicked in Unity Code Example is keyboard clicked in Unity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11