AssetPackager.Helpers.AssetListTypeHelper.GetMimeType C# (CSharp) Method

GetMimeType() public static method

Gets a MIME type associated with specified AssetListType.
public static GetMimeType ( AssetListType assetListType ) : string
assetListType AssetListType An object to analyze.
return string
		public static string GetMimeType(AssetListType assetListType)
		{
			object[] attributes = assetListType.GetType().GetCustomAttributes(typeof (MimeTypeAttribute), false);
			return attributes.Length == 0 ? String.Empty : ((MimeTypeAttribute) attributes[0]).MimeType;
		}
	}
AssetListTypeHelper