You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The format is readable and clearly shows what you're downloading, what version it is, and where you can use it. The runtime package name includes `runtime`, and the SDK includes `SDK`.
Copy file name to clipboardExpand all lines: docs/csharp/tour-of-csharp/classes-and-objects.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ The following program uses the `Expression` classes to evaluate the expression `
201
201
202
202
### Method overloading
203
203
204
-
Method *overloading* permits multiple methods in the same class to have the same name as long as they have unique signatures. When compiling an invocation of an overloaded method, the compiler uses *overload resolution* to determine the specific method to invoke. Overload resolution finds the one method that best matches the arguments or reports an error if no single best match can be found. The following example shows overload resolution in effect. The comment for each invocation in the `Main` method shows which method is actually invoked.
204
+
Method *overloading* permits multiple methods in the same class to have the same name as long as they have unique signatures. When compiling an invocation of an overloaded method, the compiler uses *overload resolution* to determine the specific method to invoke. Overload resolution finds the one method that best matches the arguments or reports an error if no single best match can be found. The following example shows overload resolution in effect. The comment for each invocation in the `UsageExample` method shows which method is actually invoked.
Copy file name to clipboardExpand all lines: docs/machine-learning/tutorials/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 06/06/2018
7
7
8
8
The following tutorials enable you to understand how to use [ML.NET](../index.md) to build custom machine learning solutions and integrate them into your .NET applications:
9
9
10
-
*[Sentiment Analysis](sentiment-analysis.md): demonstrates how to apply a binary classification task using ML.NET.
11
-
*[Taxi Fare Predictor](taxi-fare.md): demonstrates how to apply a regression task using ML.NET.
10
+
*[Sentiment analysis](sentiment-analysis.md): demonstrates how to apply a binary classification task using ML.NET.
11
+
*[Taxi fare predictor](taxi-fare.md): demonstrates how to apply a regression task using ML.NET.
12
12
13
13
For more examples that use ML.NET, check the [dotnet/machinelearning-samples](https://github.com/dotnet/machinelearning-samples) GitHub repository.
Copy file name to clipboardExpand all lines: docs/standard/choosing-core-framework-server.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Choose between .NET Core and .NET Framework for server apps
3
3
description: A guide on which implementation of .NET you should consider when building a server app in .NET.
4
4
author: cartermp
5
5
ms.author: mairaw
6
-
ms.date: 03/15/2018
6
+
ms.date: 06/19/2018
7
7
---
8
8
# Choosing between .NET Core and .NET Framework for server apps
9
9
@@ -83,8 +83,6 @@ Some .NET Framework technologies aren't available in .NET Core. Some of them mig
83
83
84
84
* ASP.NET Web Pages applications: ASP.NET Web Pages aren't included in ASP.NET Core. ASP.NET Core [Razor Pages](/aspnet/core/mvc/razor-pages/) have many similarities with Web Pages.
85
85
86
-
* ASP.NET SignalR server/client implementation. Currently, [ASP.NET SignalR](https://github.com/aspnet/SignalR) is available in preview mode with ASP.NET Core 2.1.
87
-
88
86
* WCF services implementation. Even when there’s a [WCF-Client library](https://github.com/dotnet/wcf) to consume WCF services from .NET Core, WCF server implementation is currently only available in the .NET Framework. This scenario is not part of the current plan for .NET Core but it’s being considered for the future.
89
87
90
88
* Workflow-related services: Windows Workflow Foundation (WF), Workflow Services (WCF + WF in a single service) and WCF Data Services (formerly known as "ADO.NET Data Services") are only available in the .NET Framework. There are no plans to bring WF/WCF+WF/WCF Data Services to .NET Core.
@@ -20,7 +20,7 @@ Applications must be able to handle errors that occur during execution in a cons
20
20
21
21
## Exceptions
22
22
23
-
An exception is any error condition or unexpected behavior that is encountered by an executing program. Exceptions can be thrown because of a fault in your code or in code that you call (such as a shared library), unavailable operating system resources, unexpected conditions that the runtime encounters (such as code that cannot be verified), and so on. Your application can recover from some of these conditions, but not from others. Although you can recover from most application exceptions, you cannot recover from most runtime exceptions.
23
+
An exception is any error condition or unexpected behavior that is encountered by an executing program. Exceptions can be thrown because of a fault in your code or in code that you call (such as a shared library), unavailable operating system resources, unexpected conditions that the runtime encounters (such as code that can't be verified), and so on. Your application can recover from some of these conditions, but not from others. Although you can recover from most application exceptions, you can't recover from most runtime exceptions.
24
24
25
25
In .NET, an exception is an object that inherits from the <xref:System.Exception?displayProperty=nameWithType> class. An exception is thrown from an area of code where a problem has occurred. The exception is passed up the stack until the application handles it or the program terminates.
26
26
@@ -30,38 +30,37 @@ Traditionally, a language's error-handling model relied on either the language's
30
30
31
31
- Exception throwing and handling works the same for .NET programming languages.
32
32
33
-
-Does not require any particular language syntax for handling exceptions, but allows each language to define its own syntax.
33
+
-Doesn't require any particular language syntax for handling exceptions, but allows each language to define its own syntax.
34
34
35
35
- Exceptions can be thrown across process and even machine boundaries.
36
36
37
37
- Exception-handling code can be added to an application to increase program reliability.
38
38
39
-
Exceptions offer advantages over other methods of error notification, such as return codes. Failures do not go unnoticed because if an exception is thrown and you don't handle it, the runtime terminates your application. Invalid values do not continue to propagate through the system as a result of code that fails to check for a failure return code.
39
+
Exceptions offer advantages over other methods of error notification, such as return codes. Failures don't go unnoticed because if an exception is thrown and you don't handle it, the runtime terminates your application. Invalid values don't continue to propagate through the system as a result of code that fails to check for a failure return code.
40
40
41
-
## Common Exceptions
41
+
## Common exceptions
42
42
43
43
The following table lists some common exceptions with examples of what can cause them.
44
44
45
-
| Exception type | Base type | Description | Example |
|<xref:System.Exception>|<xref:System.Object>| Base class for all exceptions. | None (use a derived class of this exception). |
48
-
|<xref:System.IndexOutOfRangeException>|<xref:System.Exception>| Thrown by the runtime only when an array is indexed improperly. | Indexing an array outside its valid range: `arr[arr.Length+1]`|
49
-
|<xref:System.NullReferenceException>|<xref:System.Exception>| Thrown by the runtime only when a null object is referenced. |`object o = null; o.ToString();`|
50
-
|<xref:System.InvalidOperationException>|<xref:System.Exception>| Thrown by methods when in an invalid state. | Calling `Enumerator.GetNext()` after removing an Item from the underlying collection. |
51
-
|<xref:System.ArgumentException>|<xref:System.Exception>| Base class for all argument exceptions. | None (use a derived class of this exception). |
52
-
|<xref:System.ArgumentNullException>|<xref:System.Exception>| Thrown by methods that do not allow an argument to be null. |`String s = null; "Calculate".IndexOf (s);`|
53
-
|<xref:System.ArgumentOutOfRangeException>|<xref:System.Exception>| Thrown by methods that verify that arguments are in a given range. |`String s = "string"; s.Substring(s.Length+1);`|
54
-
55
-
## See Also
56
-
57
-
*[Exception Class and Properties](exception-class-and-properties.md)
58
-
*[How to: Use the Try-Catch Block to Catch Exceptions](how-to-use-the-try-catch-block-to-catch-exceptions.md)
59
-
*[How to: Use Specific Exceptions in a Catch Block](how-to-use-specific-exceptions-in-a-catch-block.md)
60
-
*[How to: Explicitly Throw Exceptions](how-to-explicitly-throw-exceptions.md)
61
-
*[How to: Create User-Defined Exceptions](how-to-create-user-defined-exceptions.md)
*[How to: Use Finally Blocks](how-to-use-finally-blocks.md)
64
-
*[Handling COM Interop Exceptions](handling-com-interop-exceptions.md)
65
-
*[Best Practices for Exceptions](best-practices-for-exceptions.md)
66
-
67
-
To learn more about how exceptions work in .NET, see [What Every Dev needs to Know About Exceptions in the Runtime](https://github.com/dotnet/coreclr/blob/master/Documentation/botr/exceptions.md).
45
+
| Exception type | Description | Example |
46
+
| -------------- | ----------- | ------- |
47
+
|<xref:System.Exception>| Base class for all exceptions. | None (use a derived class of this exception). |
48
+
|<xref:System.IndexOutOfRangeException>| Thrown by the runtime only when an array is indexed improperly. | Indexing an array outside its valid range: <br /> `arr[arr.Length+1]`|
49
+
|<xref:System.NullReferenceException>| Thrown by the runtime only when a null object is referenced. |`object o = null;` <br /> `o.ToString();`|
50
+
|<xref:System.InvalidOperationException>| Thrown by methods when in an invalid state. | Calling `Enumerator.MoveNext()` after removing an item from the underlying collection. |
51
+
|<xref:System.ArgumentException>| Base class for all argument exceptions. | None (use a derived class of this exception). |
52
+
|<xref:System.ArgumentNullException>| Thrown by methods that do not allow an argument to be null. |`String s = null;` <br /> `"Calculate".IndexOf(s);`|
53
+
|<xref:System.ArgumentOutOfRangeException>| Thrown by methods that verify that arguments are in a given range. |`String s = "string";` <br /> `s.Substring(s.Length+1);`|
54
+
55
+
## See also
56
+
57
+
[Exception Class and Properties](exception-class-and-properties.md)
58
+
[How to: Use the Try-Catch Block to Catch Exceptions](how-to-use-the-try-catch-block-to-catch-exceptions.md)
59
+
[How to: Use Specific Exceptions in a Catch Block](how-to-use-specific-exceptions-in-a-catch-block.md)
60
+
[How to: Explicitly Throw Exceptions](how-to-explicitly-throw-exceptions.md)
61
+
[How to: Create User-Defined Exceptions](how-to-create-user-defined-exceptions.md)
[How to: Use Finally Blocks](how-to-use-finally-blocks.md)
64
+
[Handling COM Interop Exceptions](handling-com-interop-exceptions.md)
65
+
[Best Practices for Exceptions](best-practices-for-exceptions.md)
66
+
[What Every Dev needs to Know About Exceptions in the Runtime](https://github.com/dotnet/coreclr/blob/master/Documentation/botr/exceptions.md).
Copy file name to clipboardExpand all lines: docs/standard/io/how-to-read-text-from-a-file.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "How to: Read Text from a File"
3
-
ms.date: "03/30/2017"
3
+
ms.date: "06/19/2018"
4
4
ms.technology: dotnet-standard
5
5
dev_langs:
6
6
- "csharp"
@@ -18,16 +18,16 @@ ms.author: "mairaw"
18
18
# How to: Read Text from a File
19
19
The following examples show how to read text synchronously and asynchronously from a text file using .NET for desktop apps. In both examples, when you create the instance of the <xref:System.IO.StreamReader> class, you provide the relative or absolute path to the file. The following examples assume that the file named TestFile.txt is in the same folder as the application.
20
20
21
-
These code examples do not apply developing for Windows Store Apps because the Windows Runtime provides different streams types reading and writing to files. For an example that shows how to read text from a file within the context of a Windows Store app, see [Quickstart: Reading and writing files](http://msdn.microsoft.com/library/windows/apps/hh758325.aspx). For examples that show how to convert between .NET Framework streams and Windows runtime streams see [How to: Convert Between .NET Framework Streams and Windows Runtime Streams](../../../docs/standard/io/how-to-convert-between-dotnet-streams-and-winrt-streams.md).
21
+
These code examples do not apply to developing for Windows Store Apps because the Windows Runtime provides different stream types for reading and writing to files. For an example that shows how to read text from a file in a Windows Store app, see [Quickstart: Reading and writing files](https://docs.microsoft.com/en-us/previous-versions/windows/apps/hh758325(v=win.10)). For examples that show how to convert between .NET Framework streams and Windows runtime streams, see [How to: Convert Between .NET Framework Streams and Windows Runtime Streams](../../../docs/standard/io/how-to-convert-between-dotnet-streams-and-winrt-streams.md).
22
22
23
23
## Example
24
-
The first example shows a synchronous read operation within a console application. In this example, the text file is opened using a stream reader, the contents are copied to a string and string is output to the console.
24
+
The following example shows a synchronous read operation within a console application. In this example, the text file is opened using a stream reader, the contents are copied to a string, and the string is output to the console.
This example uses just one consumer to process the source data. If you have multiple consumers in your application, use the <xref:System.Threading.Tasks.Dataflow.IReceivableSourceBlock%601.TryReceive%2A> method to read data from the source block, as shown in the following example.
41
+
The preceding example uses just one consumer to process the source data. If you have multiple consumers in your application, use the <xref:System.Threading.Tasks.Dataflow.IReceivableSourceBlock%601.TryReceive%2A> method to read data from the source block, as shown in the following example.
0 commit comments