зеркало из https://github.com/dotnet/roslyn.git
Updated Scripting API Samples (markdown)
Родитель
3cee0bea1f
Коммит
dd83d0461b
|
@ -58,7 +58,7 @@ var result = await CSharpScript.EvaluateAsync("Sqrt(2)",
|
||||||
```
|
```
|
||||||
|
|
||||||
### <a name="parameter"></a>Parameterize a script
|
### <a name="parameter"></a>Parameterize a script
|
||||||
> **Note**: this currently doesn't work due to a [known bug](https://github.com/dotnet/roslyn/issues/6101). A workaround would be to define Globals in a .dll and #r the .dll.
|
> **Note**: this currently doesn't work inside the REPL due to a [known bug](https://github.com/dotnet/roslyn/issues/6101). A workaround would be to define Globals in a .dll and #r the .dll.
|
||||||
```csharp
|
```csharp
|
||||||
public class Globals
|
public class Globals
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче