1 write to settings
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
106
this.
settings
= settings;
48 references to settings
System.Activities (48)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (48)
110
this.generateSource = this.
settings
.AlwaysGenerateSource;
122
isCS = TextExpression.LanguagesAreEqual(this.
settings
.Language, "C#");
134
isVB = TextExpression.LanguagesAreEqual(this.
settings
.Language, "VB");
226
if (!this.
settings
.Activity.IsMetadataCached)
231
ActivityUtilities.CacheRootMetadata(this.
settings
.Activity, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.FullCachingOptions, null, ref validationErrors);
240
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsCacheMetadataException(this.
settings
.Activity.GetType().AssemblyQualifiedName, e.ToString())));
245
if (this.TryGetSymbols(this.
settings
.Activity, out this.symbols, out this.fileName))
268
visitor.Visit(this.
settings
.Activity, this.
settings
.ForImplementation);
280
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsActivityException(e.GetType().FullName, this.
settings
.Activity.GetType().AssemblyQualifiedName, e.ToString())));
316
if (this.
settings
.ForImplementation)
587
if (this.
settings
.LogSourceGenerationMessage != null)
589
this.
settings
.LogSourceGenerationMessage(SR.CompiledExpressionsIgnoringUnnamedVariable);
594
if (!CodeDomProvider.CreateProvider(this.
settings
.Language).IsValidIdentifier(name))
596
if (this.
settings
.LogSourceGenerationMessage != null)
598
this.
settings
.LogSourceGenerationMessage(SR.CompiledExpressionsIgnoringInvalidIdentifierVariable(name));
672
if (TryGenerateExpressionCode(activity, contextDescriptor, visitor.NextExpressionId, this.
settings
.Language))
711
CodeTypeDeclaration classDeclaration = new CodeTypeDeclaration(this.
settings
.ActivityName);
713
classDeclaration.IsPartial = this.
settings
.GenerateAsPartialClass;
722
languageProperty.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.
settings
.Language)));
741
forImplementationField.InitExpression = new CodePrimitiveExpression(this.
settings
.ForImplementation);
745
if (!this.
settings
.GenerateAsPartialClass)
944
if (this.
settings
.GenerateAsPartialClass)
1745
string contextName = string.Concat(this.
settings
.ActivityName, TextExpressionCompiler.typedDataContextName, this.nextContextId, forReadOnlyString);
2012
CodeNamespace codeNamespace = new CodeNamespace(this.
settings
.ActivityNamespace);
2045
types = this.
settings
.Activity.GetType().Assembly.GetTypes();
2057
if (type.Namespace == this.
settings
.ActivityNamespace)
2079
vbSettings = VisualBasic.GetSettings(this.
settings
.Activity);
2093
(nsReference.Import == this.
settings
.ActivityNamespace)
2095
((nsReference.Assembly == this.
settings
.Activity.GetType().Assembly.FullName) ||
2096
(nsReference.Assembly == this.
settings
.Activity.GetType().Assembly.GetName().Name))
2098
!string.IsNullOrWhiteSpace(this.
settings
.RootNamespace)
2112
IList<string> references = this.
settings
.ForImplementation ?
2113
TextExpression.GetNamespacesForImplementation(this.
settings
.Activity) :
2114
TextExpression.GetNamespaces(this.
settings
.Activity);
2341
using (CodeDomProvider codeDomProvider = CodeDomProvider.CreateProvider(this.
settings
.Language))
2360
using (CodeDomProvider codeDomProvider = CodeDomProvider.CreateProvider(this.
settings
.Language))
2420
if (this.IsVB && !string.IsNullOrWhiteSpace(this.
settings
.RootNamespace))
2422
compilerParameters.CompilerOptions = string.Concat("/rootnamespace:", this.
settings
.RootNamespace);
2425
List<AssemblyReference> assemblies = this.
settings
.ForImplementation ?
2426
new List<AssemblyReference>(TextExpression.GetReferencesForImplementation(this.
settings
.Activity)) :
2427
new List<AssemblyReference>(TextExpression.GetReferences(this.
settings
.Activity));
2526
Dictionary<string, int> lineNumberDictionary = this.
settings
.ForImplementation ? this.lineNumbersForNSesForImpl : this.lineNumbersForNSes;
2544
if (this.
settings
.ForImplementation)
2602
if (this.IsVB && !String.IsNullOrWhiteSpace(this.
settings
.RootNamespace))
2604
rootNamespacePrefix = this.
settings
.RootNamespace + ".";
2607
if (!String.IsNullOrWhiteSpace(this.
settings
.ActivityNamespace))
2609
namespacePrefix = this.
settings
.ActivityNamespace + ".";