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