Пример #1
0
 public virtual Object GetMemberValue(String name, int lexlevel)
 {
     if (lexlevel > 0)
     {
         if (storage.HasOwnProperty(name))
         {
             return(storage.Get(name));
         }
         else if (parent != null)
         {
             return(((IActivationObject)parent).GetMemberValue
                        (name, lexlevel - 1));
         }
     }
     return(Missing.Value);
 }
Пример #2
0
 // Get a property from this object.  Null if not present.
 internal virtual Object Get(String name)
 {
     // The base class only needs to check the prototype.
     if (parent != null)
     {
         return(parent.Get(name));
     }
     else
     {
         return(null);
     }
 }