제목 : 예제. 프로퍼티를 사용한 자바스크립트 document객체 모방하기
    
    
 
    
	
        
        
		
		
	
	
    
	using System;
namespace Window{//자바스크립트 최상위 객체 window객체 모방
    public class Document{//document객체 모방
        public static string DocumentTitle;
        public static string Title{//document객체의 title속성 모방
            get{
                return DocumentTitle;
            }
            set{
                DocumentTitle = value;
            }
        }
        public static void Write(string 메시지){
            Console.Write(메시지);
        }
    }
    public class 자바스크립트흉내내기{
        public static void Main(){
            Document.Title = "프로퍼티 연습";//Window 생략가능
            Window.Document.Write(Window.Document.Title + "\n");
        }
    }
}