Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: Twain Scanner Interface for .net with multipage support Pin
Pete O'Hanlon16-Dec-11 0:21
mvePete O'Hanlon16-Dec-11 0:21 
GeneralRe: Twain Scanner Interface for .net with multipage support Pin
BillWoodruff16-Dec-11 1:14
professionalBillWoodruff16-Dec-11 1:14 
QuestionParse Excel Currency Cell Pin
Saamir15-Dec-11 11:57
Saamir15-Dec-11 11:57 
AnswerRe: Parse Excel Currency Cell Pin
DaveyM6915-Dec-11 13:33
professionalDaveyM6915-Dec-11 13:33 
AnswerRe: Parse Excel Currency Cell Pin
Richard MacCutchan15-Dec-11 22:26
mveRichard MacCutchan15-Dec-11 22:26 
QuestionHow to include child property of LINQ to SQL object? Pin
Goalie3515-Dec-11 11:04
Goalie3515-Dec-11 11:04 
AnswerRe: How to include child property of LINQ to SQL object? Pin
Mycroft Holmes15-Dec-11 18:48
professionalMycroft Holmes15-Dec-11 18:48 
QuestionCollections, plus collection of base type - concept Pin
DaveyM6915-Dec-11 9:16
professionalDaveyM6915-Dec-11 9:16 
I have an abstract base class and two derived classes:- MyBase, MyFoo : MyBase, MyBar : MyBase.

I am creating readonly (and immutable) collections of MyFoo and MyBar:- MyFooCollection, MyBarCollection.
These are created by a one shot only factory method, so once instanciated the collection's contents will not change.

I would also like to provide, for convenience, a collection of MyBase:- MyBaseCollection which is a collation of all items in the other collections.

What would be your preferred method?

A. Create a MyBaseCollection on the fly each time it requested from the existing two collections.
B. Cache a MyBaseCollection and even though it is a duplication of the existing two collections.
C. Cache only a MyBaseCollection and create the other two collections on the fly from it.
D. Something else...
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



AnswerRe: Collections, plus collection of base type - concept Pin
PIEBALDconsult15-Dec-11 9:34
mvePIEBALDconsult15-Dec-11 9:34 
GeneralRe: Collections, plus collection of base type - concept Pin
DaveyM6915-Dec-11 9:47
professionalDaveyM6915-Dec-11 9:47 
GeneralRe: Collections, plus collection of base type - concept Pin
PIEBALDconsult15-Dec-11 10:40
mvePIEBALDconsult15-Dec-11 10:40 
GeneralRe: Collections, plus collection of base type - concept Pin
DaveyM6915-Dec-11 11:27
professionalDaveyM6915-Dec-11 11:27 
GeneralRe: Collections, plus collection of base type - concept Pin
PIEBALDconsult15-Dec-11 11:51
mvePIEBALDconsult15-Dec-11 11:51 
GeneralRe: Collections, plus collection of base type - concept Pin
Luc Pattyn15-Dec-11 19:55
sitebuilderLuc Pattyn15-Dec-11 19:55 
GeneralRe: Collections, plus collection of base type - concept Pin
DaveyM6915-Dec-11 23:54
professionalDaveyM6915-Dec-11 23:54 
GeneralRe: Collections, plus collection of base type - concept Pin
BillWoodruff16-Dec-11 4:03
professionalBillWoodruff16-Dec-11 4:03 
GeneralRe: Collections, plus collection of base type - concept Pin
DaveyM6916-Dec-11 14:20
professionalDaveyM6916-Dec-11 14:20 
GeneralRe: Collections, plus collection of base type - concept Pin
BillWoodruff16-Dec-11 18:19
professionalBillWoodruff16-Dec-11 18:19 
AnswerRe: executive summary Pin
Luc Pattyn17-Dec-11 2:23
sitebuilderLuc Pattyn17-Dec-11 2:23 
GeneralRe: Collections, plus collection of base type - concept Pin
DaveyM6917-Dec-11 2:15
professionalDaveyM6917-Dec-11 2:15 
AnswerRe: Collections, plus collection of base type - concept Pin
Luc Pattyn17-Dec-11 2:32
sitebuilderLuc Pattyn17-Dec-11 2:32 
GeneralRe: Collections, plus collection of base type - concept Pin
Luc Pattyn17-Dec-11 2:42
sitebuilderLuc Pattyn17-Dec-11 2:42 
AnswerRe: Collections, plus collection of base type - concept Pin
Luc Pattyn17-Dec-11 2:48
sitebuilderLuc Pattyn17-Dec-11 2:48 
GeneralRe: Collections, plus collection of base type - concept Pin
DaveyM6917-Dec-11 3:10
professionalDaveyM6917-Dec-11 3:10 
AnswerRe: Collections, plus collection of base type - concept Pin
Luc Pattyn17-Dec-11 3:50
sitebuilderLuc Pattyn17-Dec-11 3:50 

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.