Exemplo n.º 1
0
        static void getAttribute(ref mdr.CallFrame callFrame)
        {
            var elem = (Element)callFrame.This;
            var name = callFrame.Arg0.AsString();

            mdr.PropertyDescriptor pd  = callFrame.This.GetPropertyDescriptor(name);
            EventHandlerProperty   ehp = null;

            if (pd != null)
            {
                ehp = pd.GetProperty() as EventHandlerProperty;
            }
            string val;

            if (ehp != null)
            {
                val = GetEventHandlerAttr(callFrame.This, ehp.EventType, name);
                callFrame.Return.Set(val);
                return;
            }
            val = elem.GetContentAttribute(name);
            callFrame.Return.Set(val);
        }
Exemplo n.º 2
0
 public override DProperty GetEffectiveProperty()
 {
     return(ReceiverPD.GetProperty());
 }