2 writes to FileEncoding
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
172FileEncoding = fileEncoding; 364=> encoding == FileEncoding ? this : new ScriptOptions(this) { FileEncoding = encoding };
8 references to FileEncoding
Microsoft.CodeAnalysis.CSharp.Scripting (2)
CSharpScript.cs (2)
37return Script.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding, SourceHashAlgorithms.Default), options, globalsType, assemblyLoader); 54return Script.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding), options, globalsType, assemblyLoader);
Microsoft.CodeAnalysis.Scripting (5)
Script.cs (2)
118return new Script<TResult>(Compiler, Builder, SourceText.From(code ?? "", options.FileEncoding), options, GlobalsType, this); 131return new Script<TResult>(Compiler, Builder, SourceText.From(code, options.FileEncoding), options, GlobalsType, this);
ScriptOptions.cs (3)
188fileEncoding: other.FileEncoding, 361/// Creates a new <see cref="ScriptOptions"/> with specified <see cref="FileEncoding"/>. 364=> encoding == FileEncoding ? this : new ScriptOptions(this) { FileEncoding = encoding };
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
ScriptOptionsTests.cs (1)
186Assert.Equal(Encoding.ASCII, options.FileEncoding);