You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was wondering if anyone knows if the access modifiers for a Blazor Component can be changed to something else like internal.
Scenario:
I developed a Razor Class Library and would like to expose only one of the components from the library to my main application. All the other components in the Razor Class Library will only be used within that library. Currently, all components are exposed to the main application. This is kind of nit picky but I think it is a good practice any couldn't find and documentation on it.
I looked for some documentation on this but haven't found any yet. I will look again and update this discussion if I find any related documentation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I was wondering if anyone knows if the access modifiers for a Blazor Component can be changed to something else like internal.
Scenario:
I developed a Razor Class Library and would like to expose only one of the components from the library to my main application. All the other components in the Razor Class Library will only be used within that library. Currently, all components are exposed to the main application. This is kind of nit picky but I think it is a good practice any couldn't find and documentation on it.
I looked for some documentation on this but haven't found any yet. I will look again and update this discussion if I find any related documentation.
Beta Was this translation helpful? Give feedback.
All reactions