internal Object GetValue(){ this.BindToMember(); //Do a GetMember call and remember the result of the lookup for next time around return LateBinding.GetMemberValue(this.obj, this.name, this.last_member, this.last_members); }
internal static Object GetMemberValue2(Object obj, String name){ if (obj is ScriptObject) return ((ScriptObject)obj).GetMemberValue(name); //Create a LateBinding instance so that we can reuse the ugly logic in BindToMember to get the members. LateBinding lb = new LateBinding(name, obj); return lb.GetValue(); }