예제 #1
0
        static bool HasSynchronizingObject(TypeReference tr)
        {
            foreach (TypeDefinition type in tr.AllSuperTypes())
            {
                if (type.GetMethod(SetSynchronizingObject) != null)
                {
                    return(true);
                }
            }

            return(false);
        }