Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: private/public get/set Pin
George_George3-May-08 3:19
George_George3-May-08 3:19 
GeneralRe: private/public get/set Pin
adamzhang3-May-08 3:54
adamzhang3-May-08 3:54 
GeneralRe: private/public get/set Pin
George_George3-May-08 4:01
George_George3-May-08 4:01 
GeneralRe: private/public get/set Pin
carbon_golem3-May-08 4:22
carbon_golem3-May-08 4:22 
GeneralRe: private/public get/set Pin
George_George3-May-08 4:39
George_George3-May-08 4:39 
GeneralRe: private/public get/set Pin
Rob Graham3-May-08 4:56
Rob Graham3-May-08 4:56 
GeneralRe: private/public get/set Pin
George_George3-May-08 5:04
George_George3-May-08 5:04 
GeneralRe: private/public get/set Pin
PIEBALDconsult4-May-08 5:29
mvePIEBALDconsult4-May-08 5:29 
" When you use an accessor to implement an interface, the accessor may not have an access modifier. However, if you implement the interface using one accessor, such as get, the other accessor can have an access modifier.
"

Everything specified by an interface is public and you can't change that. (That's the meaning of "interface".)

When an interface specifies a property, it must specify at least one accessor. If the interface specifies only one, you can't modify the accessibiity of that accessor, but you may implement the other accessor and choose to make it non-public.
GeneralRe: private/public get/set Pin
George_George4-May-08 19:44
George_George4-May-08 19:44 
GeneralRe: private/public get/set Pin
PIEBALDconsult5-May-08 12:15
mvePIEBALDconsult5-May-08 12:15 
GeneralRe: private/public get/set Pin
George_George6-May-08 4:04
George_George6-May-08 4:04 
GeneralRe: private/public get/set Pin
PIEBALDconsult6-May-08 13:17
mvePIEBALDconsult6-May-08 13:17 
GeneralRe: private/public get/set Pin
George_George7-May-08 2:40
George_George7-May-08 2:40 
GeneralRe: private/public get/set Pin
PIEBALDconsult7-May-08 13:04
mvePIEBALDconsult7-May-08 13:04 
GeneralRe: private/public get/set Pin
George_George7-May-08 22:34
George_George7-May-08 22:34 
AnswerRe: private/public get/set Pin
PIEBALDconsult3-May-08 4:35
mvePIEBALDconsult3-May-08 4:35 
GeneralRe: private/public get/set Pin
George_George3-May-08 4:40
George_George3-May-08 4:40 
AnswerRe: private/public get/set Pin
Luc Pattyn3-May-08 5:40
sitebuilderLuc Pattyn3-May-08 5:40 
GeneralRe: private/public get/set Pin
PIEBALDconsult3-May-08 5:46
mvePIEBALDconsult3-May-08 5:46 
GeneralRe: private/public get/set Pin
George_George3-May-08 19:38
George_George3-May-08 19:38 
GeneralRe: private/public get/set Pin
George_George3-May-08 19:37
George_George3-May-08 19:37 
GeneralRe: private/public get/set Pin
Luc Pattyn3-May-08 22:49
sitebuilderLuc Pattyn3-May-08 22:49 
GeneralRe: private/public get/set Pin
George_George4-May-08 0:00
George_George4-May-08 0:00 
QuestionAutomated Mail Merge: Help! Pin
Member 42630173-May-08 2:44
Member 42630173-May-08 2:44 
Questioninterface implementation Pin
George_George3-May-08 2:19
George_George3-May-08 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.