Пример #1
0
        public static IEnumerable <object[]> GetAllExportedMembersWithAttribute()
        {
            foreach (MemberInfo member in RuleServices.GetAllExportedMembers())
            {
                Attribute attribute = member.GetCustomAttribute <ExportPropertyXamlRuleDefinitionAttribute>();

                yield return(new object[] { member, attribute });
            }
        }
Пример #2
0
 public static IEnumerable <object[]> GetAllExportedMembers()
 {
     return(RuleServices.GetAllExportedMembers().Select(member => new[] { member }));
 }