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