AssetPackager.Helpers.AssetsHelper.FindAssetList C# (CSharp) Method

FindAssetList() public static method

Searches asset list in a collection of AssetList objects by name.
public static FindAssetList ( ICollection assetLists, string name ) : AssetList
assetLists ICollection A collection of objects.
name string Asset list name.
return AssetPackager.Assets.AssetList
		public static AssetList FindAssetList(ICollection<AssetList> assetLists, string name)
		{
			foreach (AssetList assetList in assetLists)
			{
				if (String.Compare(name, assetList.Name, StringComparison.OrdinalIgnoreCase) == 0)
					return assetList;
			}
			return null;
		}