Define() public method

public Define ( string name, object value ) : void
name string
value object
return void
Example #1
0
 private void DefineVariables()
 {
     var paramsObj = new BikeArray();
     for (int i = 0; i < Parameters.Count; i++)
     {
         var parameter = Parameters[i];
         var paramObj = new BikeObject(InterpretationContext.ObjectBase);
         paramObj.Define("name", new BikeString(parameter.Identifier.Value));
         paramObj.Define("is_params", new BikeBoolean(parameter.IsParams));
         paramsObj.Define(i.ToString(), paramObj);
     }
     Members["params"] = paramsObj;
 }
Example #2
0
        private void DefineVariables()
        {
            var paramsObj = new BikeArray();

            for (int i = 0; i < Parameters.Count; i++)
            {
                var parameter = Parameters[i];
                var paramObj  = new BikeObject(InterpretationContext.ObjectBase);
                paramObj.Define("name", new BikeString(parameter.Identifier.Value));
                paramObj.Define("is_params", new BikeBoolean(parameter.IsParams));
                paramsObj.Define(i.ToString(), paramObj);
            }
            Members["params"] = paramsObj;
        }