Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart16-Apr-04 6:10
protectorHeath Stewart16-Apr-04 6:10 
GeneralTreeView drag and drop Pin
Pete Burgess15-Apr-04 9:49
Pete Burgess15-Apr-04 9:49 
GeneralRe: TreeView drag and drop Pin
Heath Stewart15-Apr-04 11:18
protectorHeath Stewart15-Apr-04 11:18 
GeneralRe: TreeView drag and drop Pin
Pete Burgess15-Apr-04 11:35
Pete Burgess15-Apr-04 11:35 
GeneralRe: TreeView drag and drop Pin
Pete Burgess15-Apr-04 12:05
Pete Burgess15-Apr-04 12:05 
Questioncollections or methods? Pin
Judah Gabriel Himango15-Apr-04 9:39
sponsorJudah Gabriel Himango15-Apr-04 9:39 
AnswerRe: collections or methods? Pin
Heath Stewart15-Apr-04 9:59
protectorHeath Stewart15-Apr-04 9:59 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 10:22
sponsorJudah Gabriel Himango15-Apr-04 10:22 
Thanks for the response Heath.

We certainly do want to be able to iterate over and enumerate the Foo items of the FooBar control. In fact, there are many methods in our main app that already do this, so that is a definite must.

Heath Stewart wrote:
Yes, a caller could add, remove, and even clear your collection but decent code would accomodate that.

Right. Our FooCollection already has methods for clearing, insert, remove, add, etc. and handles them all. As best as I can tell, there is no way for an external caller to break the control or corrupt the internal children via manipulation of the FooCollection.

As far as encapsulation goes, heck aren't we already doing some encapsulation via get/set accessors? I always thought that's one of the main uses of properties. Confused | :confused:

Anyway, with that in mind, and given the fact that Microsoft seems to expose collections as properties throughout the entire framework class library, I think I'll stick with my initial reaction, unless someone can point out how to break my code via access to the collection. (w/o using reflection of course!) :P


---------------------------
He who knows that enough is enough will always have enough.

-Lao Tsu

GeneralRe: collections or methods? Pin
Heath Stewart15-Apr-04 10:51
protectorHeath Stewart15-Apr-04 10:51 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 11:23
sponsorJudah Gabriel Himango15-Apr-04 11:23 
GeneralRe: collections or methods? Pin
Steven Campbell15-Apr-04 11:17
Steven Campbell15-Apr-04 11:17 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 16:41
sponsorJudah Gabriel Himango15-Apr-04 16:41 
AnswerRe: collections or methods? Pin
scadaguy15-Apr-04 11:42
scadaguy15-Apr-04 11:42 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 16:53
sponsorJudah Gabriel Himango15-Apr-04 16:53 
AnswerRe: collections or methods? Pin
bjoernen24-Apr-04 23:06
bjoernen24-Apr-04 23:06 
GeneralHotkeys Pin
rickrf15-Apr-04 7:43
rickrf15-Apr-04 7:43 
GeneralRe: Hotkeys Pin
Tom Clement15-Apr-04 7:51
professionalTom Clement15-Apr-04 7:51 
GeneralRe: Hotkeys Pin
Heath Stewart15-Apr-04 8:41
protectorHeath Stewart15-Apr-04 8:41 
GeneralRe: Hotkeys Pin
Mazdak15-Apr-04 9:24
Mazdak15-Apr-04 9:24 
GeneralRe: Hotkeys Pin
Heath Stewart15-Apr-04 9:25
protectorHeath Stewart15-Apr-04 9:25 
GeneralRe: Hotkeys Pin
rickrf16-Apr-04 4:36
rickrf16-Apr-04 4:36 
GeneralRe: Hotkeys Pin
rickrf16-Apr-04 5:16
rickrf16-Apr-04 5:16 
GeneralRe: Hotkeys Pin
Bee Master16-Apr-04 17:46
Bee Master16-Apr-04 17:46 
QuestionWinForms bug? Pin
Tom Clement15-Apr-04 7:02
professionalTom Clement15-Apr-04 7:02 
GeneralC#: Question referring Generics Pin
SJ_Phoenix15-Apr-04 6:46
SJ_Phoenix15-Apr-04 6:46 

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.