Partial class
why partial methods have't Access Modifiers
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Lindokuhle Dlamini7 reputationPosted Mar 7, 2014, 1:37 AM EST
VulpesRank #55 · 29.2K reputationPosted Mar 7, 2014, 1:52 AM EST
It would be problematic for them to be called from other classes because, if the partial method is not implemented, it will be removed altogether by the compiler and this could have repercussions on other code. Consequently, access modifiers are unnecessary and are not allowed.