Example #1
0
 public override object InternalExecute(Program program, object[] arguments)
 {
                 #if NILPROPOGATION
     if (arguments[0] == null || arguments[1] == null)
     {
         return(null);
     }
                 #endif
     Schema.FileReference file = (Schema.FileReference)arguments[0];
     file.IsAssembly = (bool)arguments[1];
     return(file);
 }
Example #2
0
 public override object InternalExecute(Program program, object[] arguments)
 {
                 #if NILPROPOGATION
     if (arguments[0] == null || arguments[1] == null)
     {
         return(null);
     }
                 #endif
     Schema.FileReference file = (Schema.FileReference)arguments[0];
     file.Environments.Clear();
     file.Environments.AddRange(((ListValue)arguments[1]).ToList <string>());
     return(file);
 }