예제 #1
0
        public static void ApplicationTrustCollectionCallMethods()
        {
            ApplicationTrustCollection atc = (ApplicationTrustCollection)Activator.CreateInstance(typeof(ApplicationTrustCollection), true);
            ApplicationTrust           at  = new ApplicationTrust();
            int testint = atc.Add(at);

            ApplicationTrust[] atarray = new ApplicationTrust[1];
            atc.AddRange(atarray);
            atc.AddRange(atc);
            atc.Clear();
            atc.CopyTo(atarray, 0);
            ApplicationTrustEnumerator ate = atc.GetEnumerator();

            atc.Remove(at);
            atc.RemoveRange(atarray);
            atc.RemoveRange(atc);
        }
예제 #2
0
        public static void ApplicationTrustCollectionCallMethods()
        {
            ApplicationTrustCollection atc = (ApplicationTrustCollection)FormatterServices.GetUninitializedObject(typeof(ApplicationTrustCollection));
            ApplicationTrust           at  = new ApplicationTrust();
            int testint = atc.Add(at);

            ApplicationTrust[] atarray = new ApplicationTrust[1];
            atc.AddRange(atarray);
            atc.AddRange(atc);
            atc.Clear();
            atc.CopyTo(atarray, 0);
            ApplicationTrustEnumerator ate = atc.GetEnumerator();

            atc.Remove(at);
            atc.RemoveRange(atarray);
            atc.RemoveRange(atc);
        }