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
* 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]>
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.
16
16
17
17
The following sample generates CS0525:
18
18
@@ -26,3 +26,5 @@ namespace x
26
26
}
27
27
}
28
28
```
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