예제 #1
0
파일: Surface.cs 프로젝트: ynkbt/moon
        System.Collections.ICollection IRefContainer.GetManagedRefs()
        {
            List <HeapRef> refs = new List <HeapRef> ();

            foreach (var keypair in strongRefs)
            {
                if (keypair.Value is INativeEventObjectWrapper)
                {
                    refs.Add(new HeapRef(true, (INativeEventObjectWrapper)keypair.Value, NativeDependencyObjectHelper.IdToName(keypair.Key)));
                }
            }

            return(refs);
        }