//------------------------------------------------------------------------------------------ static -- public static JsObj O(object obj) { var rtn = new JsObj(); rtn.Object = obj; return(rtn); }
//---------------------------------------------------------------------------------------------------- public object CloneInto(object objToCloneInto) { var o2 = JsObj.O(objToCloneInto); var propNames = this.PropertyNames(); for (int i = 0; i < propNames.Length; i++) { string propName = propNames[i]; o2.Property_Set(propName, this.Property_Get(propName, false), false); } return(objToCloneInto); }