in a C ++ class declaration, you can mark a group of members as confidential or public, for example
private: int x; double y;
There seems to be no way to do this in C #. I'm wrong?
No, you cannot do this in C #.
At best, you can use the default visibility for members, which is private, rather than using confidential, but for the public you must specify it for all members.
You're right. Although, if you leave the visibility keyword completely, the member will be closed by default.
, . , .
Source: https://habr.com/ru/post/1703190/More articles:java swing: custom all - subclass of jcomponent or jpanel or ...? - javaIIS 7 cannot connect to SQLServer 2008 - sql-serverwsdl axis generation - wsdlHow to disable cached queries in Visual Studio test load - testingMysql table indexing optimization for substring queries - sqlCross-platform 2D Vector + Raster API + hardware acceleration - does it exist? - user-interfaceIE onPaste event using javascript not HTML - javascriptHow to set leading zeros in AssemblyVersion, for example, "2.03.406.2" in .net - c #No connection can be made because the target machine is actively rejecting it - c #Monitoring bandwidth on your server - linuxAll Articles