|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Classe Collection<T>
Namespace: System.Collections.ObjectModel
Assembly: mscorlib (em mscorlib.dll)
O tipo Collection<T> expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() ![]() ![]() ![]() | Collection<T>() | |
![]() ![]() ![]() ![]() | Collection<T>(IList<T>) |
| Nome | Descrição | |
|---|---|---|
![]() ![]() ![]() ![]() | Add | |
![]() ![]() ![]() ![]() | Clear | |
![]() ![]() ![]() ![]() | ClearItems | |
![]() ![]() ![]() ![]() | Contains | |
![]() ![]() ![]() ![]() | CopyTo | |
![]() ![]() ![]() ![]() | Equals(Object) | |
![]() ![]() ![]() ![]() | Finalize | |
![]() ![]() ![]() ![]() | GetEnumerator | |
![]() ![]() ![]() ![]() | GetHashCode | |
![]() ![]() ![]() ![]() | GetType | |
![]() ![]() ![]() ![]() | IndexOf | |
![]() ![]() ![]() ![]() | Insert | |
![]() ![]() ![]() ![]() | InsertItem | |
![]() ![]() ![]() ![]() | MemberwiseClone | |
![]() ![]() ![]() ![]() | Remove | |
![]() ![]() ![]() ![]() | RemoveAt | |
![]() ![]() ![]() ![]() | RemoveItem | |
![]() ![]() ![]() ![]() | SetItem | |
![]() ![]() ![]() ![]() | ToString |
| Nome | Descrição | |
|---|---|---|
![]() ![]() ![]() ![]() | Aggregate<T>(Func<T, T, T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Aggregate<T, TAccumulate>(TAccumulate, Func<TAccumulate, T, TAccumulate>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Aggregate<T, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, T, TAccumulate>, Func<TAccumulate, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | All<T> | |
![]() ![]() ![]() ![]() | Any<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Any<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | AsEnumerable<T> | |
![]() ![]() ![]() | AsParallel() | Sobrecarregado. |
![]() ![]() ![]() | AsParallel<T>() | Sobrecarregado. |
![]() ![]() ![]() | AsQueryable() | Sobrecarregado. |
![]() ![]() ![]() | AsQueryable<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Decimal>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Nullable<Decimal>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Double>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Nullable<Double>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Int32>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Nullable<Int32>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Int64>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Nullable<Int64>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Single>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Average<T>(Func<T, Nullable<Single>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Cast<TResult> | |
![]() ![]() ![]() ![]() | Concat<T> | |
![]() ![]() ![]() ![]() | Contains<T>(T) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Contains<T>(T, IEqualityComparer<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Count<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Count<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<T>(T) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Distinct<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Distinct<T>(IEqualityComparer<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ElementAt<T> | |
![]() ![]() ![]() ![]() | ElementAtOrDefault<T> | |
![]() ![]() ![]() ![]() | Except<T>(IEnumerable<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Except<T>(IEnumerable<T>, IEqualityComparer<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | First<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | First<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | FirstOrDefault<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | FirstOrDefault<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey>(Func<T, TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey>(Func<T, TKey>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey, TElement>(Func<T, TKey>, Func<T, TElement>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey, TResult>(Func<T, TKey>, Func<TKey, IEnumerable<T>, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey, TElement>(Func<T, TKey>, Func<T, TElement>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey, TResult>(Func<T, TKey>, Func<TKey, IEnumerable<T>, TResult>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey, TElement, TResult>(Func<T, TKey>, Func<T, TElement>, Func<TKey, IEnumerable<TElement>, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupBy<T, TKey, TElement, TResult>(Func<T, TKey>, Func<T, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupJoin<T, TInner, TKey, TResult>(IEnumerable<TInner>, Func<T, TKey>, Func<TInner, TKey>, Func<T, IEnumerable<TInner>, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | GroupJoin<T, TInner, TKey, TResult>(IEnumerable<TInner>, Func<T, TKey>, Func<TInner, TKey>, Func<T, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Intersect<T>(IEnumerable<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Intersect<T>(IEnumerable<T>, IEqualityComparer<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Join<T, TInner, TKey, TResult>(IEnumerable<TInner>, Func<T, TKey>, Func<TInner, TKey>, Func<T, TInner, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Join<T, TInner, TKey, TResult>(IEnumerable<TInner>, Func<T, TKey>, Func<TInner, TKey>, Func<T, TInner, TResult>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Last<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Last<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | LastOrDefault<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | LastOrDefault<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | LongCount<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | LongCount<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Decimal>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Nullable<Decimal>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Double>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Nullable<Double>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Int32>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Nullable<Int32>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Int64>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Nullable<Int64>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Single>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T>(Func<T, Nullable<Single>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Max<T, TResult>(Func<T, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Decimal>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Nullable<Decimal>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Double>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Nullable<Double>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Int32>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Nullable<Int32>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Int64>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Nullable<Int64>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Single>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T>(Func<T, Nullable<Single>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Min<T, TResult>(Func<T, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | OfType<TResult> | |
![]() ![]() ![]() ![]() | OrderBy<T, TKey>(Func<T, TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | OrderBy<T, TKey>(Func<T, TKey>, IComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | OrderByDescending<T, TKey>(Func<T, TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | OrderByDescending<T, TKey>(Func<T, TKey>, IComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Reverse<T> | |
![]() ![]() ![]() ![]() | Select<T, TResult>(Func<T, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Select<T, TResult>(Func<T, Int32, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SelectMany<T, TResult>(Func<T, IEnumerable<TResult>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SelectMany<T, TResult>(Func<T, Int32, IEnumerable<TResult>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SelectMany<T, TCollection, TResult>(Func<T, Int32, IEnumerable<TCollection>>, Func<T, TCollection, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SelectMany<T, TCollection, TResult>(Func<T, IEnumerable<TCollection>>, Func<T, TCollection, TResult>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SequenceEqual<T>(IEnumerable<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SequenceEqual<T>(IEnumerable<T>, IEqualityComparer<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Single<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | Single<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SingleOrDefault<T>() | Sobrecarregado. |
![]() ![]() ![]() ![]() | SingleOrDefault<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Skip<T> | |
![]() ![]() ![]() ![]() | SkipWhile<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | SkipWhile<T>(Func<T, Int32, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Decimal>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Nullable<Decimal>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Double>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Nullable<Double>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Int32>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Nullable<Int32>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Int64>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Nullable<Int64>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Single>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Sum<T>(Func<T, Nullable<Single>>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Take<T> | |
![]() ![]() ![]() ![]() | TakeWhile<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | TakeWhile<T>(Func<T, Int32, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToArray<T> | |
![]() ![]() ![]() ![]() | ToDictionary<T, TKey>(Func<T, TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToDictionary<T, TKey>(Func<T, TKey>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToDictionary<T, TKey, TElement>(Func<T, TKey>, Func<T, TElement>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToDictionary<T, TKey, TElement>(Func<T, TKey>, Func<T, TElement>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToList<T> | |
![]() ![]() ![]() ![]() | ToLookup<T, TKey>(Func<T, TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToLookup<T, TKey>(Func<T, TKey>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToLookup<T, TKey, TElement>(Func<T, TKey>, Func<T, TElement>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | ToLookup<T, TKey, TElement>(Func<T, TKey>, Func<T, TElement>, IEqualityComparer<TKey>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Union<T>(IEnumerable<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Union<T>(IEnumerable<T>, IEqualityComparer<T>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Where<T>(Func<T, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() ![]() | Where<T>(Func<T, Int32, Boolean>) | Sobrecarregado. |
![]() ![]() ![]() | Zip<T, TSecond, TResult> |
| Nome | Descrição | |
|---|---|---|
![]() ![]() ![]() ![]() ![]() | ICollection.CopyTo | |
![]() ![]() ![]() ![]() ![]() | ICollection<T>.IsReadOnly | |
![]() ![]() ![]() ![]() ![]() | ICollection.IsSynchronized | |
![]() ![]() ![]() ![]() ![]() | ICollection.SyncRoot | |
![]() ![]() ![]() ![]() ![]() | IEnumerable.GetEnumerator | |
![]() ![]() ![]() ![]() ![]() | IList.Add | |
![]() ![]() ![]() ![]() ![]() | IList.Contains | |
![]() ![]() ![]() ![]() ![]() | IList.IndexOf | |
![]() ![]() ![]() ![]() ![]() | IList.Insert | |
![]() ![]() ![]() ![]() ![]() | IList.IsFixedSize | |
![]() ![]() ![]() ![]() ![]() | IList.IsReadOnly | |
![]() ![]() ![]() ![]() ![]() | IList.Item | |
![]() ![]() ![]() ![]() ![]() | IList.Remove |
using System; using System.Collections.Generic; using System.Collections.ObjectModel; public class Demo { public static void Main() { Collection<string> dinosaurs = new Collection<string>(); dinosaurs.Add("Psitticosaurus"); dinosaurs.Add("Caudipteryx"); dinosaurs.Add("Compsognathus"); dinosaurs.Add("Muttaburrasaurus"); Console.WriteLine("{0} dinosaurs:", dinosaurs.Count); Display(dinosaurs); Console.WriteLine("\nIndexOf(\"Muttaburrasaurus\"): {0}", dinosaurs.IndexOf("Muttaburrasaurus")); Console.WriteLine("\nContains(\"Caudipteryx\"): {0}", dinosaurs.Contains("Caudipteryx")); Console.WriteLine("\nInsert(2, \"Nanotyrannus\")"); dinosaurs.Insert(2, "Nanotyrannus"); Display(dinosaurs); Console.WriteLine("\ndinosaurs[2]: {0}", dinosaurs[2]); Console.WriteLine("\ndinosaurs[2] = \"Microraptor\""); dinosaurs[2] = "Microraptor"; Display(dinosaurs); Console.WriteLine("\nRemove(\"Microraptor\")"); dinosaurs.Remove("Microraptor"); Display(dinosaurs); Console.WriteLine("\nRemoveAt(0)"); dinosaurs.RemoveAt(0); Display(dinosaurs); Console.WriteLine("\ndinosaurs.Clear()"); dinosaurs.Clear(); Console.WriteLine("Count: {0}", dinosaurs.Count); } private static void Display(Collection<string> cs) { Console.WriteLine(); foreach( string item in cs ) { Console.WriteLine(item); } } } /* This code example produces the following output: 4 dinosaurs: Psitticosaurus Caudipteryx Compsognathus Muttaburrasaurus IndexOf("Muttaburrasaurus"): 3 Contains("Caudipteryx"): True Insert(2, "Nanotyrannus") Psitticosaurus Caudipteryx Nanotyrannus Compsognathus Muttaburrasaurus dinosaurs[2]: Nanotyrannus dinosaurs[2] = "Microraptor" Psitticosaurus Caudipteryx Microraptor Compsognathus Muttaburrasaurus Remove("Microraptor") Psitticosaurus Caudipteryx Compsognathus Muttaburrasaurus RemoveAt(0) Caudipteryx Compsognathus Muttaburrasaurus dinosaurs.Clear() Count: 0 */
using System; using System.Collections.Generic; using System.Collections.ObjectModel; public class Dinosaurs : Collection<string> { public event EventHandler<DinosaursChangedEventArgs> Changed; protected override void InsertItem(int index, string newItem) { base.InsertItem(index, newItem); EventHandler<DinosaursChangedEventArgs> temp = Changed; if (temp != null) { temp(this, new DinosaursChangedEventArgs( ChangeType.Added, newItem, null)); } } protected override void SetItem(int index, string newItem) { string replaced = Items[index]; base.SetItem(index, newItem); EventHandler<DinosaursChangedEventArgs> temp = Changed; if (temp != null) { temp(this, new DinosaursChangedEventArgs( ChangeType.Replaced, replaced, newItem)); } } protected override void RemoveItem(int index) { string removedItem = Items[index]; base.RemoveItem(index); EventHandler<DinosaursChangedEventArgs> temp = Changed; if (temp != null) { temp(this, new DinosaursChangedEventArgs( ChangeType.Removed, removedItem, null)); } } protected override void ClearItems() { base.ClearItems(); EventHandler<DinosaursChangedEventArgs> temp = Changed; if (temp != null) { temp(this, new DinosaursChangedEventArgs( ChangeType.Cleared, null, null)); } } } // Event argument for the Changed event. // public class DinosaursChangedEventArgs : EventArgs { public readonly string ChangedItem; public readonly ChangeType ChangeType; public readonly string ReplacedWith; public DinosaursChangedEventArgs(ChangeType change, string item, string replacement) { ChangeType = change; ChangedItem = item; ReplacedWith = replacement; } } public enum ChangeType { Added, Removed, Replaced, Cleared }; public class Demo { public static void Main() { Dinosaurs dinosaurs = new Dinosaurs(); dinosaurs.Changed += ChangedHandler; dinosaurs.Add("Psitticosaurus"); dinosaurs.Add("Caudipteryx"); dinosaurs.Add("Compsognathus"); dinosaurs.Add("Muttaburrasaurus"); Display(dinosaurs); Console.WriteLine("\nIndexOf(\"Muttaburrasaurus\"): {0}", dinosaurs.IndexOf("Muttaburrasaurus")); Console.WriteLine("\nContains(\"Caudipteryx\"): {0}", dinosaurs.Contains("Caudipteryx")); Console.WriteLine("\nInsert(2, \"Nanotyrannus\")"); dinosaurs.Insert(2, "Nanotyrannus"); Console.WriteLine("\ndinosaurs[2]: {0}", dinosaurs[2]); Console.WriteLine("\ndinosaurs[2] = \"Microraptor\""); dinosaurs[2] = "Microraptor"; Console.WriteLine("\nRemove(\"Microraptor\")"); dinosaurs.Remove("Microraptor"); Console.WriteLine("\nRemoveAt(0)"); dinosaurs.RemoveAt(0); Display(dinosaurs); } private static void Display(Collection<string> cs) { Console.WriteLine(); foreach( string item in cs ) { Console.WriteLine(item); } } private static void ChangedHandler(object source, DinosaursChangedEventArgs e) { if (e.ChangeType==ChangeType.Replaced) { Console.WriteLine("{0} was replaced with {1}", e.ChangedItem, e.ReplacedWith); } else if(e.ChangeType==ChangeType.Cleared) { Console.WriteLine("The dinosaur list was cleared."); } else { Console.WriteLine("{0} was {1}.", e.ChangedItem, e.ChangeType); } } } /* This code example produces the following output: Psitticosaurus was Added. Caudipteryx was Added. Compsognathus was Added. Muttaburrasaurus was Added. Psitticosaurus Caudipteryx Compsognathus Muttaburrasaurus IndexOf("Muttaburrasaurus"): 3 Contains("Caudipteryx"): True Insert(2, "Nanotyrannus") Nanotyrannus was Added. dinosaurs[2]: Nanotyrannus dinosaurs[2] = "Microraptor" Nanotyrannus was replaced with Microraptor Remove("Microraptor") Microraptor was Removed. RemoveAt(0) Psitticosaurus was Removed. Caudipteryx Compsognathus Muttaburrasaurus */
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.
System.Collections.ObjectModel.Collection<T>
System.Collections.ObjectModel.KeyedCollection<TKey, TItem>
System.Collections.ObjectModel.ObservableCollection<T>
System.ComponentModel.BindingList<T>
System.ComponentModel.SortDescriptionCollection
System.IdentityModel.Protocols.WSTrust.RequestClaimCollection
System.IdentityModel.Tokens.SecurityTokenHandlerCollection
System.Net.IPEndPointCollection
System.Net.Mail.AlternateViewCollection
System.Net.Mail.AttachmentCollection
System.Net.Mail.LinkedResourceCollection
System.Net.Mail.MailAddressCollection
System.Net.PeerToPeer.CloudCollection
System.Net.PeerToPeer.Collaboration.PeerApplicationCollection
System.Net.PeerToPeer.Collaboration.PeerContactCollection
System.Net.PeerToPeer.Collaboration.PeerEndPointCollection
System.Net.PeerToPeer.Collaboration.PeerNearMeCollection
System.Net.PeerToPeer.Collaboration.PeerObjectCollection
System.Net.PeerToPeer.PeerNameRecordCollection
System.Security.Cryptography.CngPropertyCollection
System.ServiceModel.Channels.BindingElementCollection
System.ServiceModel.Channels.ChannelParameterCollection
System.ServiceModel.Description.FaultDescriptionCollection
System.ServiceModel.Description.MessageDescriptionCollection
System.ServiceModel.Description.OperationDescriptionCollection
System.ServiceModel.Description.PolicyAssertionCollection
System.ServiceModel.Description.ServiceEndpointCollection
System.ServiceModel.Dispatcher.MessageQueryCollection
System.ServiceModel.Syndication.SyndicationElementExtensionCollection
System.Web.DynamicData.DataControlReferenceCollection
System.Web.ModelBinding.ModelBinderProviderCollection
System.Web.ModelBinding.ModelErrorCollection
System.Web.ModelBinding.ModelValidatorProviderCollection
System.Web.ModelBinding.ValueProviderCollection
System.Web.Routing.RouteCollection
System.Web.UI.DataVisualization.Charting.ChartElementCollection<T>
System.Web.UI.ScriptReferenceCollection
System.Web.UI.ServiceReferenceCollection
System.Web.UI.UpdatePanelTriggerCollection
System.Windows.ConditionCollection
System.Windows.Forms.DataVisualization.Charting.ChartElementCollection<T>
System.Windows.Forms.FileDialogCustomPlacesCollection
System.Windows.Ink.StrokeCollection
System.Windows.Input.StylusPlugIns.StylusPlugInCollection
System.Windows.Input.StylusPointCollection
System.Windows.Input.TouchPointCollection
System.Windows.SetterBaseCollection
System.Windows.TriggerCollection
System.Workflow.ComponentModel.Compiler.ValidationErrorCollection



