Skip to content
Merged
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions docs/csharp/misc/cs0112.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ ms.assetid: 6741c7c4-8553-4bbe-b950-4f908e8d9ba3
---
# Compiler Error CS0112

A static member 'function' cannot be marked as override, virtual or abstract
A static member 'function' in a class or struct cannot be marked as override, virtual, or abstract.

Any method declaration that uses the `override`, **virtual**, or **abstract** keyword cannot also use the **static** keyword.
Any method declaration in a class or struct that uses the `override`, `virtual`, or `abstract` keyword cannot also use the `static` keyword.

Before C# 11, interface members could not combine `static` with `override`, `virtual`, or `abstract`. Beginning with C# 11, interface methods, properties, events, and operators can combine `static` with `abstract` or `virtual` by using `static abstract` or `static virtual`.

For more information, see [Methods](../programming-guide/classes-and-structs/methods.md).

Expand Down
Loading