JetBrains Rider 2025.3 Help

Code inspection: Empty extension block

This inspection reports empty extension blocks that might be left over after a refactoring or cleanup. For example:

public static class StringExtensions { extension(string str) { public bool IsNullOrEmpty() => string.IsNullOrEmpty(str); public bool IsNullOrWhiteSpace() => string.IsNullOrWhiteSpace(str); } extension (char[] chars) { } }
public static class StringExtensions { extension(string str) { public bool IsNullOrEmpty() => string.IsNullOrEmpty(str); public bool IsNullOrWhiteSpace() => string.IsNullOrWhiteSpace(str); } }
12 November 2025