Method GetMajorityAssetType
GetMajorityAssetType(IEnumerable<string>, float)
Returns the most common asset type based on file extensions.
Declaration
public static string GetMajorityAssetType(IEnumerable<string> filePaths, float minRatio = 0.75)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | filePaths | File paths to inspect. |
| float | minRatio | Minimum ratio of occurrences required. |
Returns
| Type | Description |
|---|---|
| string | The most common asset type or null if the threshold is not met. |