mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use tuples to convert MediaType to type and subtype.
This commit is contained in:
@@ -40,8 +40,11 @@ namespace DiscImageChef.CommonTypes.Metadata
|
||||
{
|
||||
public static class MediaType
|
||||
{
|
||||
public static void MediaTypeToString(CommonTypes.MediaType dskType, out string discType, out string discSubType)
|
||||
public static (string type, string subType) MediaTypeToString(CommonTypes.MediaType dskType)
|
||||
{
|
||||
string discType;
|
||||
string discSubType;
|
||||
|
||||
switch(dskType)
|
||||
{
|
||||
case CommonTypes.MediaType.BDR:
|
||||
@@ -2331,6 +2334,8 @@ namespace DiscImageChef.CommonTypes.Metadata
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return(discType, discSubType);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user