Skip to content

Commit 80e5cd3

Browse files
bigboybamoadegeoBillWagner
authored
Cs0525 update (#46668)
* Update access-modifiers.md Added description for file access type modifier * Update cs0525.md Added Links to show different use cases for Class and Interface * Add oxford comma * Update docs/csharp/misc/cs0525.md --------- Co-authored-by: Andy (Steve) De George <[email protected]> Co-authored-by: Bill Wagner <[email protected]>
1 parent 4bea713 commit 80e5cd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/csharp/misc/cs0525.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: fcecfd4f-221f-41e6-a95c-1685be78926e
1212

1313
Interfaces cannot contain instance fields
1414

15-
An [interface](../language-reference/keywords/interface.md) can contain methods and properties and fields.
15+
An [interface](../language-reference/keywords/interface.md) can contain methods, properties, and fields.
1616

1717
The following sample generates CS0525:
1818

@@ -26,3 +26,5 @@ namespace x
2626
}
2727
}
2828
```
29+
30+
Only [classes](../language-reference/keywords/class.md) can contain instance data. [Interfaces](../language-reference/keywords/interface.md) describe a contract. These articles help you learn their key differences and use cases.

0 commit comments

Comments
 (0)