Skip to content

Commit 14f83e2

Browse files
Daniel Parvinjskeet
authored andcommitted
Performed copyediting of the classes document.
1 parent bc1b6e3 commit 14f83e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

standard/classes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ A type declared within a class or struct is called a ***nested type***. A type t
10891089
10901090
#### 15.3.9.2 Fully qualified name
10911091
1092-
The fully qualified name ([§7.8.3](basic-concepts.md#783-fully-qualified-names)) for a nested type declarationis `S.N` where `S` is the fully qualified name of the type declarationin which type `N` is declared and `N` is the unqualified name ([§7.8.2](basic-concepts.md#782-unqualified-names)) of the nested type declaration (including any *generic_dimension_specifier* ([§12.8.18](expressions.md#12818-the-typeof-operator))).
1092+
The fully qualified name ([§7.8.3](basic-concepts.md#783-fully-qualified-names)) for a nested type declaration is `S.N` where `S` is the fully qualified name of the type declarationin which type `N` is declared and `N` is the unqualified name ([§7.8.2](basic-concepts.md#782-unqualified-names)) of the nested type declaration (including any *generic_dimension_specifier* ([§12.8.18](expressions.md#12817-the-typeof-operator))).
10931093
10941094
#### 15.3.9.3 Declared accessibility
10951095
@@ -2937,7 +2937,7 @@ An abstract method declaration is permitted to override a virtual method. This a
29372937
29382938
When a method declaration includes an `extern` modifier, the method is said to be an ***external method***. External methods are implemented externally, typically using a language other than C#. Because an external method declaration provides no actual implementation, the method body of an external method simply consists of a semicolon. An external method shall not be generic.
29392939
2940-
The mechanism by which linkage to an external method is achieved, is implementation-defined.
2940+
The mechanism by which linkage to an external method is achieved is implementation-defined.
29412941
29422942
> *Example*: The following example demonstrates the use of the `extern` modifier and the `DllImport` attribute:
29432943
>
@@ -3837,7 +3837,7 @@ Once a particular non-ref-valued property or non-ref-valued indexer has been sel
38373837
>
38383838
> *end example*
38393839
3840-
Once a particular ref-valued property or ref-valued indexer has been selected; whether the usage is as a value, the target of a simple assignment, or the target of a compound assignment; the accessibility domain of the get accessor involved is used to determine if that usage is valid.
3840+
Once a particular ref-valued property or ref-valued indexer has been selected--whether the usage is as a value, the target of a simple assignment, or the target of a compound assignment--the accessibility domain of the get accessor involved is used to determine if that usage is valid.
38413841
38423842
An accessor that is used to implement an interface shall not have an *accessor_modifier*. If only one accessor is used to implement an interface, the other accessor may be declared with an *accessor_modifier*:
38433843
@@ -4472,7 +4472,7 @@ Indexers and properties are very similar in concept, but differ in the following
44724472
- A set accessor of a property corresponds to a method with a single parameter named `value`, whereas a set accessor of an indexer corresponds to a method with the same parameter list as the indexer, plus an additional parameter named `value`.
44734473
- It is a compile-time error for an indexer accessor to declare a local variable or local constant with the same name as an indexer parameter.
44744474
- In an overriding property declaration, the inherited property is accessed using the syntax `base.P`, where `P` is the property name. In an overriding indexer declaration, the inherited indexer is accessed using the syntax `base[E]`, where `E` is a comma-separated list of expressions.
4475-
- There is no concept of anautomatically implemented indexer”. It is an error to have a non-abstract, non-external indexer with semicolon *accessor_body*s.
4475+
- There is no concept of anautomatically implemented indexer.” It is an error to have a non-abstract, non-external indexer with semicolon *accessor_body*s.
44764476
44774477
Aside from these differences, all rules defined in15.7.3](classes.md#1573-accessors), [§15.7.5](classes.md#1575-accessibility) and15.7.6](classes.md#1576-virtual-sealed-override-and-abstract-accessors) apply to indexer accessors as well as to property accessors.
44784478
@@ -4521,7 +4521,7 @@ binary_operator_declarator
45214521
45224522
overloadable_binary_operator
45234523
: '+' | '-' | '*' | '/' | '%' | '&' | '|' | '^' | '<<'
4524-
| right_shift | '==' | '!=' | '>' | '<' | '>=' | '<='
4524+
| '>>' | '==' | '!=' | '>' | '<' | '>=' | '<='
45254525
;
45264526
45274527
conversion_operator_declarator
@@ -4616,7 +4616,7 @@ The `true` and `false` unary operators require pair-wise declaration. A compile-
46164616
The following rules apply to binary operator declarations, where `T` denotes the instance type of the class or struct that contains the operator declaration:
46174617
46184618
- A binary non-shift operator shall take two parameters, at least one of which shall have type `T` or `T?`, and can return any type.
4619-
- A binary `<<` or `>>` operator ([§12.11](expressions.md#1211-shift-operators)) shall take two parameters, the first of which shall have type `T` or T? and the second of which shall have type `int` or `int?`, and can return any type.
4619+
- A binary `<<` or `>>` operator ([§12.11](expressions.md#1211-shift-operators)) shall take two parameters, the first of which shall have type `T` or `T?` and the second of which shall have type `int` or `int?`, and can return any type.
46204620
46214621
The signature of a binary operator consists of the operator token (`+`, `-`, `*`, `/`, `%`, `&`, `|`, `^`, `<<`, `>>`, `==`, `!=`, `>`, `<`, `>=`, or `<=`) and the types of the two parameters. The return type and the names of the parameters are not part of a binary operators signature.
46224622

0 commit comments

Comments
 (0)