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); }
public override DProperty GetEffectiveProperty() { return(ReceiverPD.GetProperty()); }