コード例 #1
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="layout"></param>
		public JsObject(ScriptLayout layout)
			: base(layout)
		{
			Properties = new JsPropertyList();
		}
コード例 #2
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="items"></param>
		public JsObject(params object[] items)
		{
			Properties = new JsPropertyList(items);
		}
コード例 #3
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="list"></param>
		public JsObject(JsPropertyList list)
		{
			Properties = list;
		}
コード例 #4
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="properties"></param>
        public JsObject(IEnumerable<object> properties)
		{
			Properties = new JsPropertyList(properties);
		}
コード例 #5
0
		/// <summary>
		/// create an empty object
		/// {}
		/// </summary>
		public JsObject() 
		{
			Properties = new JsPropertyList();
		}
コード例 #6
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="layout"></param>
		/// <param name="list"></param>
		public JsObject(ScriptLayout layout, JsPropertyList list)
			: base(layout)
		{
			Properties = list;
		}
コード例 #7
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="layout"></param>
		/// <param name="items"></param>
		public JsObject(ScriptLayout layout, params object[] items)
			: base(layout)
		{
			Properties = new JsPropertyList(items);
		}
コード例 #8
0
		/// <summary>
		/// create an object with properties
		/// {name: value, name: value, name: value}
		/// </summary>
		/// <param name="layout"></param>
		/// <param name="items"></param>
		public JsObject(ScriptLayout layout, IEnumerable<object> items)
			: base(layout)
		{
			Properties = new JsPropertyList(items);
		}