Ejemplo n.º 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();
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 5
0
		/// <summary>
		/// create an empty object
		/// {}
		/// </summary>
		public JsObject() 
		{
			Properties = new JsPropertyList();
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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);
		}