Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b1d0fe8
fixed broken link (#3169)
mairaw Sep 18, 2017
f4767ee
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 18, 2017
fc8ef62
fixed pipes in tables (#3163)
mairaw Sep 19, 2017
2d0dfff
added info about relative paths for output (#3042)
mairaw Sep 19, 2017
71258c7
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 19, 2017
51d3e2d
Update how-to-write-a-simple-parallel-for-loop.md (#3174)
whosenbocus Sep 20, 2017
53382d0
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
af9512d
fixed formulas (#3182)
mairaw Sep 20, 2017
54de1d8
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
058c717
simplifying version list (#3176)
mairaw Sep 20, 2017
3536654
Minor fixes : inconsistent wording and some ghost characters (#3171)
Styxxy Sep 20, 2017
84aa428
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
7b7b3ed
Adding C# version history post (#2867)
erikdietrich Sep 20, 2017
9d583c8
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
eb4056d
Learn C# Tutorial (#2306)
BillWagner Sep 20, 2017
9dd64c4
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
433a854
Fix typo: AesCrytpServiceProvider -> AesCryptoServiceProvider (#3185)
chlowell Sep 20, 2017
eceb396
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
b39ad8a
added net core behavior (#3140)
mairaw Sep 20, 2017
d4e91ea
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 20, 2017
f30153d
quick link fix to the hub page (#3193)
BillWagner Sep 21, 2017
f857949
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
377505c
Removed duplicate entry from 'See Also' section (#3195)
ZeeshanAK Sep 21, 2017
6418ad5
removed invisible characters (#3192)
mairaw Sep 21, 2017
2a91ee2
update snippet reference (#3191)
mairaw Sep 21, 2017
ade8b66
fixed broken link (#3190)
mairaw Sep 21, 2017
1c8fb08
clarified example (#3184)
mairaw Sep 21, 2017
47a46e9
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
bb9d7b2
Updating condition(s) under which the method throws (#3152)
stevewhims Sep 21, 2017
612f4fb
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
96512eb
Update mutually recursive functions snippet (#3186)
aliozgur Sep 21, 2017
e6bf84a
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
70abdf8
494407 Corrections to DnsSafeHost and IdnHost (#3143)
stevewhims Sep 21, 2017
c39a418
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
2656807
Improve Suits and Ranks definitions (#3197)
ibqn Sep 21, 2017
1fc3d85
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
ca5c1a7
Fixed Kelvin output, make culture independent (#3157)
paulroho Sep 21, 2017
af1ad32
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
6ab8f52
Fixed Kelvin output, make culture independent (#3159)
paulroho Sep 21, 2017
16b6e65
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
2c0814b
Remove Duplicate Config Definition (#3200)
kellenlask Sep 21, 2017
67349b6
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 21, 2017
81117b1
fixed api link format (#3194)
mairaw Sep 21, 2017
2b5135e
Typo in document - IOne instead of One (#3202)
whosenbocus Sep 22, 2017
dbf6d46
Fix framework in dotnet store command topic (#3188)
guardrex Sep 22, 2017
265a9a0
Merging changes synced from https://github.com/dotnet/docs (branch ma…
Sep 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fixes : inconsistent wording and some ghost characters (#3171)
* what's new Tuples : sample use InvariantCulture

* vb tuple example fix new language feature sample

* minor typos

* compiler warning corrected to match previously mentioned number
* removed a "ghost" quote

* fixed inconsistent "read-only" and "read only"

* code formatting (missing space)
  • Loading branch information
Styxxy authored and mairaw committed Sep 20, 2017
commit 3536654b237537f2eb2e7b2c6d9f6c31b84f349c
10 changes: 5 additions & 5 deletions docs/csharp/whats-new/csharp-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ auto-properties. C# 6 improves the auto-properties capabilities so that you can
them in more scenarios. You won't need to fall back on the more verbose syntax of
declaring and manipulating the backing field by hand so often.

The new syntax addresses scenarios for read only properties, and for initializing
The new syntax addresses scenarios for read-only properties, and for initializing
the variable storage behind an auto-property.

### Read-only auto-properties
Expand Down Expand Up @@ -97,7 +97,7 @@ public class Student

public void ChangeName(string newLastName)
{
// Generates CS 0200: Property or indexer cannot be assigned to -- it is read only
// Generates CS0200: Property or indexer cannot be assigned to -- it is read only
LastName = newLastName;
}
}
Expand Down Expand Up @@ -131,7 +131,7 @@ is part of the property declaration, making it easier to equate the
storage allocation with public interface for `Student` objects.

Property Initializers can be used with read/write properties as well
as read only properties, as shown here.
as read-only properties, as shown here.

[!code-csharp[ReadWriteInitialization](../../../samples/snippets/csharp/new-in-6/newcode.cs#ReadWriteInitialization)]

Expand All @@ -140,12 +140,12 @@ as read only properties, as shown here.
The body of a lot of members that we write consist of only one statement
that can be represented as an expression. You can reduce that syntax by
writing an expression-bodied member instead. It works for methods and
read-only properties." For example, an override of `ToString()` is often
read-only properties. For example, an override of `ToString()` is often
a great candidate:

[!code-csharp[ToStringExpressionMember](../../../samples/snippets/csharp/new-in-6/newcode.cs#ToStringExpressionMember)]

You can also use expression-bodied members in read only properties as well:
You can also use expression-bodied members in read-only properties as well:

[!code-csharp[FullNameExpressionMember](../../../samples/snippets/csharp/new-in-6/newcode.cs#FullNameExpressionMember)]

Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/csharp/new-in-6/Newcode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Student(string firstName, string lastName)
public ICollection<double> Grades { get; } = new List<double>();
// </Initialization>
// <ReadWriteInitialization>
public Standing YearInSchool { get; set;} = Standing.Freshman;
public Standing YearInSchool { get; set; } = Standing.Freshman;
// </ReadWriteInitialization>

// <FullNameExpressionMember>
Expand Down