Esempio n. 1
0
        private IEnumerable<IMember> getMembers(string fileName)
        {
            var xdoc = XDocument.Load(fileName);
            var document = xdoc.Element("doc");

            var elements = document.Element("members").Elements("member");
            var factory = new MemberFactory();
            var members = elements.Where(e => !e.IsOfMemberType(MemberType.Type))
                .Select(e => factory.GetMember(e));
            return members;
        }
Esempio n. 2
0
 public MemberBaseTests()
 {
     var memberFactory = new MemberFactory();
     MethodMemberWithDefinedType = memberFactory.GetMember(CreateXDocWithTypeDefined()) as MethodMember;
     MethodMemberWithoutDefinedType = memberFactory.GetMember(CreateXDocWithoutTypeDefined()) as MethodMember;
 }