internal bool SetStaticValue(out object oldValue, object name, object newValue, int staticOffset) { object cell = this.staticBindings[staticOffset]; ValueCell vcell = cell as ValueCell; if (vcell != null) { return(vcell.Assign(out oldValue, newValue)); } else { throw new NotImplementedException(); } // return this.staticBindings [staticOffset].Assign (out oldValue, newValue); }
public bool StaticValue(out object value, object name, int staticOffset) { //return this.staticBindings [staticOffset].GetValue (out value); object cell = this.staticBindings[staticOffset]; ValueCell vcell = cell as ValueCell; if (vcell == null) { value = cell; return(false); } else { return(vcell.GetValue(out value)); } }
ValueCell cell; // the lambda expression that binds it public StaticBinding(object name, ValueCell cell) { this.cell = cell; this.name = name; }
public StaticBinding(object name, ValueCell cell) { this.cell = cell; this.name = name; }
protected PrimitiveVectorRefT(Primitive2 rator, TopLevelVariable rand0, SCode rand1) : base(rator, rand0, rand1) { this.rand0Cell = rand0.valueCell; }