Пример #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);
		}