제목 : 8.4.2. NickName.cs
    
    
        
            
                | 글번호: |  | 324 | 
            
                | 작성자: |  | 레드플러스 | 
            
                | 작성일: |  | 2007/02/12 오후 2:26:00 | 
            
            
                | 조회수: |  | 7188 | 
            
        
     
 
    
	
	
    
	using System;
using System.Collections;
public class NickName
{
    // 해시테이블 형식의 필드 생성
    public Hashtable names = new Hashtable();
    // 문자열 인덱서 구현
    public string this[string key]
    {
        get
        {
            return (string)names[key];
        }
        set
        {
            names[key] = value;        
        }
    }
    // 정수형 인덱서 구현
    public string this[int index]
    {
        get
        {
            return (string)names[index];
        }
        set
        {
            names[index] = value;        
        }
    }    
}
    
	
    
    
 
    
    
    
    
    
    
    
    
    
    
    
     
    
        