Skip to content

Commit 909cada

Browse files
authored
acrolinx (#18573)
1 parent 9e9f962 commit 909cada

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

docs/core/tools/custom-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The *mytemplate* folder is an installable template pack. Once the pack is instal
9191

9292
## Packing a template into a NuGet package (nupkg file)
9393

94-
A custom template is packed with the [dotnet pack](dotnet-pack.md) command and a *.csproj* file. Alternatively, [NuGet](https://docs.microsoft.com/nuget/tools/nuget-exe-cli-reference) can be used with the [nuget pack](https://docs.microsoft.com/nuget/tools/cli-ref-pack) command along with a *.nuspec* file. However, NuGet requires the .NET Framework on Windows and [Mono](https://www.mono-project.com/) on Linux and MacOS.
94+
A custom template is packed with the [dotnet pack](dotnet-pack.md) command and a *.csproj* file. Alternatively, [NuGet](https://docs.microsoft.com/nuget/tools/nuget-exe-cli-reference) can be used with the [nuget pack](https://docs.microsoft.com/nuget/tools/cli-ref-pack) command along with a *.nuspec* file. However, NuGet requires the .NET Framework on Windows and [Mono](https://www.mono-project.com/) on Linux and macOS.
9595

9696
The *.csproj* file is slightly different from a traditional code-project *.csproj* file. Note the following settings:
9797

docs/csharp/expression-trees-interpreting.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ child node, repeat the process used at the root node: determine the
2424
type, and if the type has children, visit each of the children.
2525

2626
## Examining an Expression with No Children
27-
Let's start by visiting each node in a very simple expression tree.
27+
Let's start by visiting each node in a simple expression tree.
2828
Here's the code that creates a constant expression and then
2929
examines its properties:
3030

@@ -60,7 +60,7 @@ Expression<Func<int>> sum = () => 1 + 2;
6060
> because the right-hand side of the assignment is implicitly typed.
6161
6262
The root node is a `LambdaExpression`. In order to get the interesting
63-
code on the right hand side of the `=>` operator, you need to find one
63+
code on the right-hand side of the `=>` operator, you need to find one
6464
of the children of the `LambdaExpression`. We'll do that with all the
6565
expressions in this section. The parent node does help us find the return
6666
type of the `LambdaExpression`.
@@ -231,7 +231,7 @@ public class ConstantVisitor : Visitor
231231
```
232232

233233
This algorithm is the basis of an algorithm that can visit
234-
any arbitrary `LambdaExpression`. There are a lot of holes,
234+
any arbitrary `LambdaExpression`. There are many holes,
235235
namely that the code I created only looks for a very small
236236
sample of the possible sets of expression tree nodes that
237237
it may encounter. However, you can still learn quite a bit
@@ -295,8 +295,7 @@ expressions. The second represent *left associative* expressions.
295295
The advantage of both of those two formats is that the format scales
296296
to any arbitrary number of addition expressions.
297297

298-
If you do run this expression through the visitor, you will see this
299-
this output, verifying that the simple addition expression is
298+
If you do run this expression through the visitor, you will see this output, verifying that the simple addition expression is
300299
*left associative*.
301300

302301
In order to run this sample, and see the full expression tree, I had to
@@ -410,7 +409,7 @@ to Expressions. First, statement lambdas are not allowed. That means I can't use
410409
loops, blocks, if / else statements, and other control structures common in C#. I'm
411410
limited to using expressions. Second, I can't recursively call the same expression.
412411
I could if it were already a delegate, but I can't call it in its expression tree
413-
form. In the section on [building expression trees](expression-trees-building.md)
412+
form. In the section on [building expression trees](expression-trees-building.md),
414413
you'll learn techniques to overcome these limitations.
415414

416415
In this expression, you'll encounter nodes of all these types:
@@ -587,7 +586,7 @@ and can handle all the possible node types.
587586

588587
Finally, the library I used in this article was built for demonstration
589588
and learning. It's not optimized. I wrote it to make the structures
590-
used very clear, and to highlight the techniques used to visit
589+
used clear, and to highlight the techniques used to visit
591590
the nodes and analyze what's there. A production implementation would
592591
pay more attention to performance than I have.
593592

docs/framework/unmanaged-api/hosting/iclrruntimeinfo-isloadable-method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ HRESULT IsLoadable(
3939
|E_POINTER|`pbLoadable` is null.|
4040
4141
## Remarks
42-
If another runtime is already loaded into the process and the runtime associated with this interface can be loaded for in-process side-by-side execution, `pbLoadable` returns `true`. If the two runtimes cannot run side-by-side in-process, `pbLoadable` returns `false`. For example, the common language runtime (CLR) version 4 can run side-by-side in the same process with CLR version 2.0 or CLR version 1.1. However, CLR version 1.1 and CLR version 2.0 cannot run side-by-side in-process.
42+
If another runtime is already loaded into the process, and the runtime associated with this interface can be loaded for in-process side-by-side execution, `pbLoadable` returns `true`. If the two runtimes cannot run side-by-side in-process, `pbLoadable` returns `false`. For example, the common language runtime (CLR) version 4 can run side-by-side in the same process with CLR version 2.0 or CLR version 1.1. However, CLR version 1.1 and CLR version 2.0 cannot run side-by-side in-process.
4343
4444
If no runtimes are loaded into the process, this method always returns `true`.
4545

0 commit comments

Comments
 (0)