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

SerializeAssets() public static method

Serializes a list of Asset objects into a string using URL names.
public static SerializeAssets ( ICollection assets ) : string
assets ICollection List of objects to serialize.
return string
		public static string SerializeAssets(ICollection<Asset> assets)
		{
			List<string> names = new List<string>();
			foreach (Asset asset in assets)
				names.Add(asset.Name);
			names.Sort();
			return String.Join(",", names.ToArray());
		}