Esempio n. 1
0
 //----- convenience methods
 public void addPropertyGetter(Identifier ident, PropGetFunc func)
 {
     addPropertyGetter(
     ident,
     new Function_Native(
         new ParameterImpl[]{},
         Bridge.stdn_Nullable_any,
         delegate(IScope scope) {
             return func();
         },
         null));
 }
Esempio n. 2
0
 public void addBreeder(IInterface face, PropGetFunc func)
 {
     _breeders.Add(
     face,
     new Function_Native(
         new ParameterImpl[]{},
         new NType(face),
         delegate(IScope scope) {
             return func();
         },
         null));
 }