Ejemplo n.º 1
0
        protected virtual void InitializeMemberCache(bool onlyTypes)
        {
            MemberDefinition.LoadMembers(this, onlyTypes, ref cache);

            if (onlyTypes)
            {
                state |= StateFlags.PendingMemberCacheMembers;
            }
            else
            {
                state &= ~StateFlags.PendingMemberCacheMembers;
            }
        }
Ejemplo n.º 2
0
        protected virtual void InitializeMemberCache(bool onlyTypes)
        {
            try {
                MemberDefinition.LoadMembers(this, onlyTypes, ref cache);
            } catch (Exception e) {
                throw new InternalErrorException(e, "Unexpected error when loading type `{0}'", GetSignatureForError());
            }

            if (onlyTypes)
            {
                state |= StateFlags.PendingMemberCacheMembers;
            }
            else
            {
                state &= ~StateFlags.PendingMemberCacheMembers;
            }
        }