제목 : 예제. 인덱서(indexer)를 사용한 자바스크립트 Array객체 모방
    
    
 
    
	
        
        
		
		
	
	
    
	//인덱서(indexer)
using System;
public class 배열{
    public string [] 배열리스트 = new string[7];
    public string this[int index]{
        get{return 배열리스트[index];}
        set{배열리스트[index] = value;}
    }
}
public class 자바스크립트Array객체흉내내기{
    public static void Main(){
        배열 week = new 배열();
        week[0] = "일";        week[1] = "월";
        week[2] = "화";        week[3] = "수";
        week[4] = "목";        week[5] = "금";
        week[6] = "토";
        for(int i = 0; i < 7;i++){
            Console.Write("{0}", week[i]);
            if(i > 0 && i % 3 == 0) Console.WriteLine();
        }
        Console.WriteLine();
    }
}