diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-24 16:56:41 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-24 16:56:41 +0800 |
commit | c324d1dad0ffc1a1013b22792078415e7a50c470 (patch) | |
tree | c8f5032f86d8a9e5df0117d438ea741cb0a4f613 /Timeline/Helpers/LanguageHelper.cs | |
parent | 9a163719b76958374d1c27616393368e54e8b8a5 (diff) | |
download | timeline-c324d1dad0ffc1a1013b22792078415e7a50c470.tar.gz timeline-c324d1dad0ffc1a1013b22792078415e7a50c470.tar.bz2 timeline-c324d1dad0ffc1a1013b22792078415e7a50c470.zip |
...
Diffstat (limited to 'Timeline/Helpers/LanguageHelper.cs')
-rw-r--r-- | Timeline/Helpers/LanguageHelper.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Timeline/Helpers/LanguageHelper.cs b/Timeline/Helpers/LanguageHelper.cs new file mode 100644 index 00000000..b0156b8b --- /dev/null +++ b/Timeline/Helpers/LanguageHelper.cs @@ -0,0 +1,12 @@ +using System.Linq;
+
+namespace Timeline.Helpers
+{
+ public static class LanguageHelper
+ {
+ public static bool AreSame(this bool firstBool, params bool[] otherBools)
+ {
+ return otherBools.All(b => b == firstBool);
+ }
+ }
+}
|