mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
32 lines
710 B
C#
32 lines
710 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 Executable
|
|
{
|
|
get { return "EXECUTABLE"; }
|
|
}
|
|
|
|
public static bool IsAllowed(string language)
|
|
{
|
|
return language.ToUpper() == Python.ToUpper()
|
|
|| language.ToUpper() == CSharp.ToUpper()
|
|
|| language.ToUpper() == Executable.ToUpper();
|
|
}
|
|
}
|
|
} |