mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 02:47:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -2,14 +2,17 @@ namespace AIStudio.Tools.MIME;
|
||||
|
||||
public static class MIMETypeExtensions
|
||||
{
|
||||
public static string[] ToStringArray(this MIMEType[] mimeTypes)
|
||||
extension(MIMEType[] mimeTypes)
|
||||
{
|
||||
var result = new string[mimeTypes.Length];
|
||||
for (var i = 0; i < mimeTypes.Length; i++)
|
||||
public string[] ToStringArray()
|
||||
{
|
||||
result[i] = mimeTypes[i];
|
||||
}
|
||||
var result = new string[mimeTypes.Length];
|
||||
for (var i = 0; i < mimeTypes.Length; i++)
|
||||
{
|
||||
result[i] = mimeTypes[i];
|
||||
}
|
||||
|
||||
return result;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user