Access modifier to restrict use only in the current partial declaration #4529
-
This would be much similar to partial class C {
int Method() { .. }
}
// Generated
partial class C {
hidden int Method() { .. } // does not conflict with `Method` in user-code
} Beyond code generation, it's also useful to have a more restrictive member access modifier for types that span multiple files. Sometimes it doesn't help to make a new class for members that you want to separate out from the rest of the declaration. Using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Duplicate of #1288 |
Beta Was this translation helpful? Give feedback.
Duplicate of #1288