IEnumerable<T>
A sequence of the items assignable to T.
Enumerates every metadata item of the given type.
Items are returned in the order they were added. Use MetadataCollection.GetMetadata when you only need the first match.
<para>Iterate every comment attached to a collection.</para>
using System.Collections.Generic; using Unity.Localization;
namespace Unity.Localization.Samples { public class MetadataCollectionGetMetadatasExample { public IEnumerable<Comment> Run(MetadataCollection metadata) => metadata.GetMetadatas<Comment>(); } }