mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
32 lines
722 B
C#
32 lines
722 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Wox.Plugin
|
|
{
|
|
public static class AllowedLanguage
|
|
{
|
|
public static string Python
|
|
{
|
|
get { return "python"; }
|
|
}
|
|
|
|
public static string CSharp
|
|
{
|
|
get { return "csharp"; }
|
|
}
|
|
|
|
public static string ExecutableFile
|
|
{
|
|
get { return "executablefile"; }
|
|
}
|
|
|
|
public static bool IsAllowed(string language)
|
|
{
|
|
return language.ToUpper() == Python.ToUpper()
|
|
|| language.ToUpper() == CSharp.ToUpper()
|
|
|| language.ToUpper() == ExecutableFile.ToUpper();
|
|
}
|
|
}
|
|
} |