JetBrains Rider 2026.1 Help

Code inspection: Member or type can be made internal (friend)

This inspection reports a public type or member that is not used from outside the current assembly and can have narrower visibility. It helps reduce unnecessary public API surface and makes encapsulation clearer.

Example

public class Settings { public string Name { get; private set; } }
public class Settings { internal string Name { get; private set; } }

Quick-fix

Change the declaration from public to internal.

28 March 2026