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(); }
internal static object GetMemberValue2(object obj, string name) { if (obj is ScriptObject) { return ((ScriptObject) obj).GetMemberValue(name); } LateBinding binding = new LateBinding(name, obj); return binding.GetValue(); }
internal static Object GetMemberValue2(Object obj, String name){ if (obj is ScriptObject) return ((ScriptObject)obj).GetMemberValue(name); LateBinding lb = new LateBinding(name, obj); return lb.GetValue(); }