Skip to content

Commit d038bac

Browse files
author
Ron Petrusha
authored
Merge pull request #6419 from dotnet/master
Update Live with current Master
2 parents 64bc39a + c68fcdf commit d038bac

File tree

44 files changed

+190
-929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+190
-929
lines changed

.openpublishing.redirection.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,10 +1334,38 @@
13341334
"source_path":"docs/visual-basic/programming-guide/concepts/threading/thread-timers.md",
13351335
"redirect_url":"/dotnet/standard/threading/timers"
13361336
},
1337+
{
1338+
"source_path":"docs/csharp/programming-guide/concepts/threading/walkthrough-multithreading-with-the-backgroundworker-component.md",
1339+
"redirect_url":"/dotnet/api/system.componentmodel.backgroundworker"
1340+
},
1341+
{
1342+
"source_path":"docs/visual-basic/programming-guide/concepts/threading/walkthrough-multithreading-with-the-backgroundworker-component.md",
1343+
"redirect_url":"/dotnet/api/system.componentmodel.backgroundworker"
1344+
},
13371345
{
13381346
"source_path":"docs/fsharp/language-reference/primitive-types.md",
13391347
"redirect_url":"/dotnet/fsharp/language-reference/basic-types",
13401348
"redirect_document_id": true
1349+
},
1350+
{
1351+
"source_path":"docs/fsharp/using-fsharp-in-visual-studio/index.md",
1352+
"redirect_url":"/visualstudio/ide/fsharp-visual-studio",
1353+
"redirect_document_id":true
1354+
},
1355+
{
1356+
"source_path":"docs/fsharp/using-fsharp-in-visual-studio/visual-fsharp-development-environment-features.md",
1357+
"redirect_url":"/visualstudio/ide/fsharp-visual-studio",
1358+
"redirect_document_id":true
1359+
},
1360+
{
1361+
"source_path":"docs/fsharp/using-fsharp-in-visual-studio/configuring-projects.md",
1362+
"redirect_url":"/visualstudio/ide/fsharp-visual-studio",
1363+
"redirect_document_id":true
1364+
},
1365+
{
1366+
"source_path":"docs/fsharp/using-fsharp-in-visual-studio/targeting-older-versions-of-net.md",
1367+
"redirect_url":"/visualstudio/ide/fsharp-target-older-dotnet-versions",
1368+
"redirect_document_id":true
13411369
}
13421370
]
13431371
}

docs/csharp/pattern-matching.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ to those statements.
3939
In this topic, you'll build a method that computes the area of
4040
different geometric shapes. But, you'll do it without resorting to object
4141
oriented techniques and building a class hierarchy for the different shapes.
42-
You'll use *pattern matching* instead. To further emphasize that we're not
43-
using inheritance, you'll make each shape a `struct` instead of a class.
44-
Note that different `struct` types cannot specify a common user defined
45-
base type, so inheritance is not a possible design.
42+
You'll use *pattern matching* instead.
4643
As you go through this sample, contrast this code with how it would
4744
be structured as an object hierarchy. When the data you must
4845
query and manipulate is not a class hierarchy, pattern matching enables

docs/csharp/programming-guide/concepts/assemblies-gac/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Assemblies form the fundamental unit of deployment, version control, reuse, acti
2121
- If you want to load an assembly only to inspect it, use a method such as <xref:System.Reflection.Assembly.ReflectionOnlyLoadFrom%2A>.
2222

2323
## Assembly Manifest
24-
Within every assembly is an *assembly manifest*. Similar to a table of contents, the assembly manifest contains the following:
24+
Within every assembly, there is an *assembly manifest*. Similar to a table of contents, the assembly manifest contains the following:
2525

2626
- The assembly's identity (its name and version).
2727

docs/csharp/programming-guide/concepts/async/async-return-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In the following example, the `GetLeisureHours` async method contains a `return`
2727

2828
When `GetLeisureHours` is called from within an await expression in the `ShowTodaysInfo` method, the await expression retrieves the integer value (the value of `leisureHours`) that's stored in the task returned by the `GetLeisureHours` method. For more information about await expressions, see [await](../../../../csharp/language-reference/keywords/await.md).
2929

30-
You can better understand how this happens by separating the call to `GetLeisureHours` from the application of `await`, as the following code shows. A call to method `TaskOfT_MethodAsync` that isn't immediately awaited returns a `Task<int>`, as you would expect from the declaration of the method. The task is assigned to the `integerTask` variable in the example. Because `integerTask` is a <xref:System.Threading.Tasks.Task%601>, it contains a <xref:System.Threading.Tasks.Task%601.Result> property of type `TResult`. In this case, TResult represents an integer type. When `await` is applied to `integerTask`, the await expression evaluates to the contents of the <xref:System.Threading.Tasks.Task%601.Result%2A> property of `integerTask`. The value is assigned to the `result2` variable.
30+
You can better understand how this happens by separating the call to `GetLeisureHours` from the application of `await`, as the following code shows. A call to method `GetLeisureHours` that isn't immediately awaited returns a `Task<int>`, as you would expect from the declaration of the method. The task is assigned to the `integerTask` variable in the example. Because `integerTask` is a <xref:System.Threading.Tasks.Task%601>, it contains a <xref:System.Threading.Tasks.Task%601.Result> property of type `TResult`. In this case, TResult represents an integer type. When `await` is applied to `integerTask`, the await expression evaluates to the contents of the <xref:System.Threading.Tasks.Task%601.Result%2A> property of `integerTask`. The value is assigned to the `ret` variable.
3131

3232
> [!IMPORTANT]
3333
> The <xref:System.Threading.Tasks.Task%601.Result%2A> property is a blocking property. If you try to access it before its task is finished, the thread that's currently active is blocked until the task completes and the value is available. In most cases, you should access the value by using `await` instead of accessing the property directly. <br/> The previous example retrieved the value of the <xref:System.Threading.Tasks.Task%601.Result%2A> property to block the main thread so that the `ShowTodaysInfo` method could finish execution before the application ended.
@@ -43,7 +43,7 @@ In the following example, the `WaitAndApologize` async method doesn't contain a
4343

4444
`WaitAndApologize` is awaited by using an await statement instead of an await expression, similar to the calling statement for a synchronous void-returning method. The application of an await operator in this case doesn't produce a value.
4545

46-
As in the previous <xref:System.Threading.Tasks.Task%601> example, you can separate the call to `Task_MethodAsync` from the application of an await operator, as the following code shows. However, remember that a `Task` doesn't have a `Result` property, and that no value is produced when an await operator is applied to a `Task`.
46+
As in the previous <xref:System.Threading.Tasks.Task%601> example, you can separate the call to `WaitAndApologize` from the application of an await operator, as the following code shows. However, remember that a `Task` doesn't have a `Result` property, and that no value is produced when an await operator is applied to a `Task`.
4747

4848
The following code separates calling the `WaitAndApologize` method from awaiting the task that the method returns.
4949

docs/csharp/programming-guide/concepts/threading/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Threading enables your C# program to perform concurrent processing so that you c
3333
|-----------|-----------------|
3434
|[Multithreaded Applications (C#)](../../../../csharp/programming-guide/concepts/threading/multithreaded-applications.md)|Describes how to create and use threads.|
3535
|[Parameters and Return Values for Multithreaded Procedures (C#)](../../../../csharp/programming-guide/concepts/threading/parameters-and-return-values-for-multithreaded-procedures.md)|Describes how to pass and return parameters with multithreaded applications.|
36-
|[Walkthrough: Multithreading with the BackgroundWorker Component (C#)](../../../../csharp/programming-guide/concepts/threading/walkthrough-multithreading-with-the-backgroundworker-component.md)|Shows how to create a simple multithreaded application.|
3736
|[Thread Synchronization (C#)](../../../../csharp/programming-guide/concepts/threading/thread-synchronization.md)|Describes how to control the interactions of threads.|
3837
|[Thread Pooling (C#)](../../../../csharp/programming-guide/concepts/threading/thread-pooling.md)|Describes how to use a pool of worker threads that are managed by the system.|
3938
|[How to: Use a Thread Pool (C#)](../../../../csharp/programming-guide/concepts/threading/how-to-use-a-thread-pool.md)|Demonstrates synchronized use of multiple threads in the thread pool.|

docs/csharp/programming-guide/concepts/threading/parameters-and-return-values-for-multithreaded-procedures.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ private void BackgroundWorker1_RunWorkerCompleted(
112112
You can provide parameters and return values to thread-pool threads by using the optional `ByVal` state-object variable of the <xref:System.Threading.ThreadPool.QueueUserWorkItem%2A> method. Thread-timer threads also support a state object for this purpose. For information on thread pooling and thread timers, see [Thread Pooling (C#)](../../../../csharp/programming-guide/concepts/threading/thread-pooling.md) and [Timers](../../../../standard/threading/timers.md).
113113

114114
## See Also
115-
[Walkthrough: Multithreading with the BackgroundWorker Component (C#)](../../../../csharp/programming-guide/concepts/threading/walkthrough-multithreading-with-the-backgroundworker-component.md)
116115
[Thread Pooling (C#)](../../../../csharp/programming-guide/concepts/threading/thread-pooling.md)
117116
[Thread Synchronization (C#)](../../../../csharp/programming-guide/concepts/threading/thread-synchronization.md)
118117
[Events](../../../../csharp/programming-guide/events/index.md)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# [Threading](index.md)
22
## [Multithreaded Applications](multithreaded-applications.md)
33
## [Parameters and Return Values for Multithreaded Procedures](parameters-and-return-values-for-multithreaded-procedures.md)
4-
## [Walkthrough: Multithreading with the BackgroundWorker Component](walkthrough-multithreading-with-the-backgroundworker-component.md)
54
## [Thread Synchronization](thread-synchronization.md)
65
## [Thread Pooling](thread-pooling.md)
76
### [How to: Use a Thread Pool](how-to-use-a-thread-pool.md)

0 commit comments

Comments
 (0)