Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

Diagram showing an interface with a default method implementation and a class overriding it.
C#

C# Default Interface Method: Syntax and Compatibility

c# default interface method: Learn how C# default interface methods work, when to use them, and how they affect versioning and compatibility in real projects.

C#InterfacesDefault ImplementationsAPI Versioning
A visual metaphor for C# explicit interface implementation showing a class with two interface access points, one hidden behind a key and the other open.
C#

C# Explicit Interface Implementation: When and How to Use It

C# explicit interface implementation lets a class provide separate behavior for interface members while keeping them out of its public API. Learn when to use it, how it differs from implicit implementation, and common pitfalls.

C#InterfacesImplementationType Safety
Illustration of a C# interface method contract with a class implementing it, showing the abstraction and implementation relationship.
C#

C# Interface Method: Declaration and Implementation

c# interface method: Learn how to declare, implement, and use C# interface methods, including explicit implementation, default methods, and common pitfalls.

C#InterfaceOOPPolymorphism
Diagram showing an interface property contract being implemented by a class
C#

C# Interface Property: Syntax and Implementation

c# interface property: Learn how to declare and implement properties in C# interfaces, including implicit and explicit implementation, get-only and init-only accessors...

C# InterfacesPropertiesExplicit ImplementationDefault Interface Members
Comparison of C# abstract class and interface concepts showing a contract versus reuse diagram.
C#

C# Abstract Class vs Interface: Choosing the Right Abstraction

Compare C# abstract classes and interfaces: syntax, capabilities, use cases, and tradeoffs to choose the right abstraction for your type design.

C#Abstract ClassInterfaceOOP Design
Diagram showing a C# class node connected to multiple interface contracts, with a collision point resolved by an explicit implementation branch.
C#

C# Multiple Interface Implementation: Syntax and Collisions

Learn how to implement multiple interfaces in C#, resolve member collisions with explicit interface implementations, and choose maintainable interface designs.

C#Interfaces.NETExplicit Interface Implementation
Illustration of a C# interface implementation showing a class connecting to an interface contract with method signatures.
C#

C# Interface Implementation: Syntax and Patterns

Learn how to implement interfaces in C# with practical examples: implicit vs explicit implementations, default methods, interface inheritance, and dependency injection.

C# interfacesexplicit implementationdefault interface methodsdependency injection
An abstract illustration of a C# interface declaration showing a contract between types, with a blueprint-like design.
C#

C# Interface Declaration: Syntax and Usage

Learn the syntax and rules for declaring C# interfaces, including members, access modifiers, and implementation patterns.

C# interfacesinterface syntaxinterface implementationtype contracts
Illustration of C# interface contracts connecting different class implementations
C#

C# Interface Usage: Contracts, Polymorphism, and DI

Learn how C# interfaces define contracts, support polymorphism, and make dependency injection cleaner, with code examples and common pitfalls.

C# InterfacesPolymorphismDependency InjectionSOLID Principles
Diagram showing an abstract base class with derived classes inheriting and overriding abstract members in C#
C#

C# Abstract Class Inheritance Explained

c# abstract class inheritance: Learn how C# abstract class inheritance works: abstract members, constructor flow, sealed overrides, and when an abstract class beats an...

abstract classinheritanceC# OOPinterfaces