Microsoft.Zing.Splicer.HeapUsed C# (CSharp) Method

HeapUsed() private method

private HeapUsed ( ) : bool
return bool
        private bool HeapUsed()
        {
            for (int c = 0, nc = this.cZing.CompilationUnits.Count; c < nc; c++)
            {
                for (int t = 0, nTypes = ((Namespace)this.cZing.CompilationUnits[c].Nodes[0]).Types.Count; t < nTypes; t++)
                {
                    TypeNode node = ((Namespace)this.cZing.CompilationUnits[c].Nodes[0]).Types[t];

                    if (node is Set || node is ZArray || node is Chan)
                        return true;

                    if (node is Class)
                    {
                        for (int m = 0, nMembers = node.Members.Count; m < nMembers; m++)
                        {
                            if (node.Members[m] != null && !node.Members[m].IsStatic)
                                return true;
                        }
                    }
                }
            }
            return false;
        }