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); }
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); }