예제 #1
0
        public async Task <AttachedEventData> GetAttachedEvent(IAttachedEvent <IProperty> eventData)
        {
            var plainProperty = await eventData.GetProperty();

            return(new AttachedEventData(plainProperty, eventData.Conditions, eventData.Value, eventData.AttachmentID));
        }
예제 #2
0
 public static StaticMemberName GetStaticMemberName(this IAttachedEvent a)
 {
     return(new StaticMemberName(
                a.DeclaringType.GetTypeName(),
                new TypeMemberName(a.AddMethodName)));
 }
예제 #3
0
 Statement HookAttachedEvent(IAttachedEvent a, Expression handler)
 {
     return(new CallStaticMethod(a.GetStaticMemberName(), This, handler));
 }