FileFormat.ContentType

FileFormat.ContentType property

获取文件格式的内容类型

public FileContentType ContentType { get; }

示例

var format = FileFormat.MayaBinary;
if (format.ContentType == FileContentType.Binary)
    Console.WriteLine($"{format} is binary format");
else
    Console.WriteLine($"{format} is text-based format");

另请参见