コード例 #1
0
        internal static List <DelegateTypeInformation> GetDelegateTypeInformations(ClrDump clrDump)
        {
            var types            = GetDelegateTypes(clrDump);
            var typeInformations = new List <DelegateTypeInformation>();

            foreach (var type in types)
            {
                var count               = clrDump.CountInstances(type);
                var targets             = CountTargets(clrDump, type);
                var delegateInformation = new DelegateTypeInformation(clrDump, type, count, targets);
                typeInformations.Add(delegateInformation);
            }

            return(typeInformations);
        }
コード例 #2
0
        internal static List<DelegateTypeInformation> GetDelegateTypeInformations(ClrDump clrDump)
        {
            var types = GetDelegateTypes(clrDump);
            var typeInformations = new List<DelegateTypeInformation>();
            foreach(var type in types)
            {
                var count = clrDump.CountInstances(type);
                var targets = CountTargets(clrDump, type);
                var delegateInformation = new DelegateTypeInformation(clrDump, type, count, targets);
                typeInformations.Add(delegateInformation);
            }

            return typeInformations;
        }