65 references to SupportedLanguages
System.Workflow.ComponentModel (65)
AuthoringOM\Compiler\CompileXomlTask.cs (9)
119private SupportedLanguages projectType; 158ProjectType = SupportedLanguages.CSharp; 162ProjectType = SupportedLanguages.VB; 365if (this.ProjectType == SupportedLanguages.VB) 532case SupportedLanguages.VB: 565if (this.ProjectType == SupportedLanguages.VB) 656private SupportedLanguages ProjectType 857if (this.ProjectType == SupportedLanguages.VB) 880if (this.ProjectType == SupportedLanguages.VB)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (4)
142SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(serviceProvider); 168if (language == SupportedLanguages.CSharp && returnValue.StartsWith("@\"", StringComparison.Ordinal)) 180foreach (string enumValue in (this.ArgumentValues[argumentIndex] as string).Split(new string[] { language == SupportedLanguages.CSharp ? "|" : "Or" }, StringSplitOptions.RemoveEmptyEntries)) 217if (ParseHelpers.ParseTypeName(typeName, language == SupportedLanguages.CSharp ? ParseHelpers.ParseTypeNameLanguage.CSharp : ParseHelpers.ParseTypeNameLanguage.VB, out baseTypeName, out genericParamTypeNames, out elementDecorators))
AuthoringOM\Compiler\XomlCompiler.cs (2)
869SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(parameters.LanguageToUse); 993if (language == SupportedLanguages.CSharp)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
231SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(parameters.LanguageToUse);
AuthoringOM\Compiler\XomlCompilerParameters.cs (3)
445if (String.Compare(value, SupportedLanguages.CSharp.ToString(), StringComparison.OrdinalIgnoreCase) != 0 && 446String.Compare(value, SupportedLanguages.VB.ToString(), StringComparison.OrdinalIgnoreCase) != 0) 536if (parameters.CompilerOptions != null && (CompilerHelpers.GetSupportedLanguage(parameters.LanguageToUse) == SupportedLanguages.VB))
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (3)
330SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(context); 333if (string.Compare(memberInfo.Name, newMemberName, language == SupportedLanguages.VB, CultureInfo.InvariantCulture) == 0) 341if (errorMsg == null && string.Compare(customActivityType.Name, newMemberName, language == SupportedLanguages.VB, CultureInfo.InvariantCulture) == 0)
AuthoringOM\Design\IdentifierCreationService.cs (5)
42SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(this.serviceProvider); 43if (language == SupportedLanguages.CSharp) 65SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(this.serviceProvider); 66if (language == SupportedLanguages.CSharp && identifier.StartsWith("@", StringComparison.Ordinal) || 67language == SupportedLanguages.VB && identifier.StartsWith("[", StringComparison.Ordinal) && identifier.EndsWith("]", StringComparison.Ordinal) ||
AuthoringOM\Design\PropertyDescriptors.cs (2)
98bool isVB = (CompilerHelpers.GetSupportedLanguage(activity.Site) == SupportedLanguages.VB); 535bool isVB = (CompilerHelpers.GetSupportedLanguage(context) == SupportedLanguages.VB);
Shared\CompilerHelpers.cs (10)
106internal static CodeDomProvider GetCodeDomProvider(SupportedLanguages language) 112internal static CodeDomProvider GetCodeDomProvider(SupportedLanguages language, string compilerVersion) 114if (language == SupportedLanguages.CSharp) 125internal static SupportedLanguages GetSupportedLanguage(IServiceProvider serviceProvider) 127SupportedLanguages supportedLanguage = SupportedLanguages.CSharp; 135internal static SupportedLanguages GetSupportedLanguage(string language) 137SupportedLanguages supportedLanguage = SupportedLanguages.CSharp; 141supportedLanguage = SupportedLanguages.VB;
Shared\TypeSystemHelpers.cs (13)
283internal static string FormatType(Type type, SupportedLanguages language) 289if (language == SupportedLanguages.CSharp) 295if (language == SupportedLanguages.CSharp) 311if (language == SupportedLanguages.CSharp) 323if (language == SupportedLanguages.VB) 330if (language == SupportedLanguages.CSharp) 341internal static string FormatType(string type, SupportedLanguages language) 352if (language == SupportedLanguages.VB) 363if (language == SupportedLanguages.CSharp) 375if (language == SupportedLanguages.VB) 383if (language == SupportedLanguages.CSharp) 408internal static Type ParseTypeName(ITypeProvider typeProvider, SupportedLanguages language, string typeName) 418if (ParseTypeName(typeName, language == SupportedLanguages.CSharp ? ParseTypeNameLanguage.CSharp : ParseTypeNameLanguage.VB, out simpleTypeName, out parameters, out decoratorString))
Shared\ValidationHelpers.cs (6)
40SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(serviceProvider); 42if (language == SupportedLanguages.CSharp && identifier.StartsWith("@", StringComparison.Ordinal) || 43language == SupportedLanguages.VB && identifier.StartsWith("[", StringComparison.Ordinal) && identifier.EndsWith("]", StringComparison.Ordinal) || 84SupportedLanguages language = CompilerHelpers.GetSupportedLanguage(context); 87if (language == SupportedLanguages.CSharp && identifier.StartsWith("@", StringComparison.Ordinal) || 88language == SupportedLanguages.VB && identifier.StartsWith("[", StringComparison.Ordinal) && identifier.EndsWith("]", StringComparison.Ordinal) ||
Shared\XomlSerializationHelpers.cs (7)
210internal static CodeNamespaceCollection GenerateCodeFromXomlDocument(Activity rootActivity, string filePath, string rootNamespace, SupportedLanguages language, IServiceProvider serviceProvider) 336if (language == SupportedLanguages.CSharp) 357if (method != null && language == SupportedLanguages.CSharp) 383internal static void FixStandardNamespacesAndRootNamespace(CodeNamespaceCollection codeNamespaces, string rootNS, SupportedLanguages language) 386if (language == SupportedLanguages.VB) 416internal static void ReapplyRootNamespace(CodeNamespaceCollection codeNamespaces, string rootNS, SupportedLanguages language) 418if (language == SupportedLanguages.VB)