GetMemberValue2() private method

private GetMemberValue2 ( Object obj, String name ) : Object
obj Object
name String
return Object
コード例 #1
0
 internal override void SetMemberValue(String name, Object value)
 {
     if (LateBinding.GetMemberValue2(this.contained_object, name) is Missing)
     {
         ((ScriptObject)this.parent).SetMemberValue(name, value);
     }
     else
     {
         LateBinding.SetMemberValue(this.contained_object, name, value);
     }
 }
コード例 #2
0
 internal override void SetMemberValue(string name, object value)
 {
     if (LateBinding.GetMemberValue2(this.contained_object, name) is Microsoft.JScript.Missing)
     {
         base.parent.SetMemberValue(name, value);
     }
     else
     {
         LateBinding.SetMemberValue(this.contained_object, name, value);
     }
 }
コード例 #3
0
        public Object GetMemberValue(String name, int lexlevel)
        {
            if (lexlevel <= 0)
            {
                return(Missing.Value);
            }
            Object result = LateBinding.GetMemberValue2(this.contained_object, name);

            if (result != Missing.Value)
            {
                return(result);
            }
            return(((IActivationObject)this.parent).GetMemberValue(name, lexlevel - 1));
        }
コード例 #4
0
        internal override Object GetMemberValue(String name)
        {
            Object result = LateBinding.GetMemberValue2(this.contained_object, name);

            if (!(result is Missing))
            {
                return(result);
            }
            if (this.parent != null)
            {
                return(this.parent.GetMemberValue(name));
            }
            return(Missing.Value);
        }
コード例 #5
0
        public object GetMemberValue(string name, int lexlevel)
        {
            if (lexlevel <= 0)
            {
                return(Microsoft.JScript.Missing.Value);
            }
            object obj2 = LateBinding.GetMemberValue2(this.contained_object, name);

            if (obj2 != Microsoft.JScript.Missing.Value)
            {
                return(obj2);
            }
            return(((IActivationObject)base.parent).GetMemberValue(name, lexlevel - 1));
        }
コード例 #6
0
        internal override object GetMemberValue(string name)
        {
            object obj2 = LateBinding.GetMemberValue2(this.contained_object, name);

            if (!(obj2 is Microsoft.JScript.Missing))
            {
                return(obj2);
            }
            if (base.parent != null)
            {
                return(base.parent.GetMemberValue(name));
            }
            return(Microsoft.JScript.Missing.Value);
        }