Closed bentoi closed 3 years ago
This sounds fine.
So can we use[cs:internal]
or is there a better option?
What about something like [cs:visibility(public|private|internal|whatever)]
I guess is more flexible, but we never need public
this is the default, private
doesn't make sense for Slice generated types, is there anything other than internal
that we want to use? if not I will just stick with the simpler cs:internal
Today, it's not possible to make generated types "internal" C# types. All the generated types are "public".
This is an issue for Slic types defined in
SlicDefinitions.ice
or the protocol types fromIceXProtocolDefinitions.ice.
These types don't need to be public given that they are only used by the IceRpc implementation and aren't useful to an IceRpc application.We should support a Slice attribute to allow changing the visibility of Slice generated types.