public override void execute3(RunTimeValueBase thisObj,FunctionDefine functionDefine,SLOT returnSlot,SourceToken token,StackFrame stackframe,out bool success) { RefOutStore _this = (RefOutStore)((LinkSystemObject)((ASBinCode.rtData.rtObjectBase)thisObj).value).GetLinkData(); try { string arg0 = TypeConverter.ConvertToString(argements[0],stackframe,token); System.Object arg1; { object _temp; if (!stackframe.player.linktypemapper.rtValueToLinkObject( argements[1], stackframe.player.linktypemapper.getLinkType(argements[1].rtType) , bin,true,out _temp )) { stackframe.throwCastException(token,argements[1].rtType, functionDefine.signature.parameters[1].type ); success = false; return; } arg1 = (System.Object)_temp; } _this.SetValue((System.String)arg0,(System.Object)arg1) ; returnSlot.directSet(ASBinCode.rtData.rtUndefined.undefined); success = true; } catch (ASRunTimeException tlc) { success = false; stackframe.throwAneException(token,tlc.Message); } catch (InvalidCastException ic) { success = false; stackframe.throwAneException(token,ic.Message); } catch (ArgumentException a) { success = false; stackframe.throwAneException(token,a.Message); } catch (IndexOutOfRangeException i) { success = false; stackframe.throwAneException(token,i.Message); } catch (NotSupportedException n) { success = false; stackframe.throwAneException(token,n.Message); } }
public override void execute3(RunTimeValueBase thisObj,FunctionDefine functionDefine,SLOT returnSlot,SourceToken token,StackFrame stackframe,out bool success) { RefOutStore _this = (RefOutStore)((LinkSystemObject)((ASBinCode.rtData.rtObjectBase)thisObj).value).GetLinkData(); try { string arg0 = TypeConverter.ConvertToString(argements[0],stackframe,token); object _result_ = _this.GetValue((System.String)arg0) ; if (_result_ == null) { stackframe.player.linktypemapper.storeLinkObject_ToSlot(_result_,functionDefine.signature.returnType,returnSlot,bin,stackframe.player); } else { stackframe.player.linktypemapper.storeLinkObject_ToSlot(_result_, stackframe.player.linktypemapper.getRuntimeDataType(_result_.GetType()) ,returnSlot,bin,stackframe.player); } success = true; } catch (KeyNotFoundException kc) { success = false; stackframe.throwAneException(token,"out or ref parameter not found." + kc.Message); } catch (ASRunTimeException tlc) { success = false; stackframe.throwAneException(token,tlc.Message); } catch (InvalidCastException ic) { success = false; stackframe.throwAneException(token,ic.Message); } catch (ArgumentException a) { success = false; stackframe.throwAneException(token,a.Message); } catch (IndexOutOfRangeException i) { success = false; stackframe.throwAneException(token,i.Message); } catch (NotSupportedException n) { success = false; stackframe.throwAneException(token,n.Message); } }