Code Analysis ReferenceFixesCS0507On this pageCS0507PropertyValueTitle'function1': cannot change access modifiers when overriding 'access' inherited member 'function2'.SeverityErrorCode FixesChange accessibilitySee AlsoOfficial Documentation