Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# implicit operator Pin
Member 378753716-Apr-14 18:51
Member 378753716-Apr-14 18:51 
Questionconvert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens16-Apr-14 6:46
professionalNico Haegens16-Apr-14 6:46 
AnswerRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
SledgeHammer0116-Apr-14 7:05
SledgeHammer0116-Apr-14 7:05 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens16-Apr-14 7:15
professionalNico Haegens16-Apr-14 7:15 
AnswerRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming16-Apr-14 7:57
mveRichard Deeming16-Apr-14 7:57 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens16-Apr-14 23:24
professionalNico Haegens16-Apr-14 23:24 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming17-Apr-14 1:54
mveRichard Deeming17-Apr-14 1:54 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens17-Apr-14 2:19
professionalNico Haegens17-Apr-14 2:19 
I haven't decided yet on the exact implementation, but it's likely to be the following:
- add items to the list or add the items directly into the database, depending on what I feel is best
- display the list on a webpage, possibly using paging depending on the number of items in that list. I have no idea at the moment whether it will be a few items or a few dozen.
What are the advantages of using a readonly collection class? I assume it's slightly faster, but otherwise I have no idea of what it implicates.

Side info:
I've only written the data access layer of my program so far. Very soon starting on user interface.
Having said that, I've already got the implementation to insert items directly into the database and have no collection class that supports inserting, deleting or modifying items in that list yet.
My fellow team members haven't started coding yet, so I can still easily change the type to IEnumerable.

I lead a team of 3 people to make a school project to make a small program for a client. My teacher told me and my team members that I should make a seperate data access layer, cause my code is too complicated for my team mates to understand, but end up making the same user interface(website). So need to have an interface so everything keeps working regardless which DAL we use. My team members have little experience with extension methods, generics and lambda expressions.
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming17-Apr-14 2:30
mveRichard Deeming17-Apr-14 2:30 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens17-Apr-14 3:26
professionalNico Haegens17-Apr-14 3:26 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming17-Apr-14 3:31
mveRichard Deeming17-Apr-14 3:31 
QuestionHow To Fetch User information and show in a page ? Pin
krish099116-Apr-14 6:04
krish099116-Apr-14 6:04 
AnswerRe: How To Fetch User information and show in a page ? Pin
OriginalGriff16-Apr-14 6:13
mveOriginalGriff16-Apr-14 6:13 
QuestionHow to change login button to logout in c# ? Pin
krish099116-Apr-14 6:02
krish099116-Apr-14 6:02 
AnswerRe: How to change login button to logout in c# ? Pin
OriginalGriff16-Apr-14 6:12
mveOriginalGriff16-Apr-14 6:12 
QuestionMultiple functions Pin
cstudent116-Apr-14 5:41
cstudent116-Apr-14 5:41 
AnswerRe: Multiple functions Pin
OriginalGriff16-Apr-14 5:51
mveOriginalGriff16-Apr-14 5:51 
AnswerRe: Multiple functions Pin
Richard MacCutchan16-Apr-14 5:57
mveRichard MacCutchan16-Apr-14 5:57 
GeneralRe: Multiple functions Pin
cstudent116-Apr-14 6:30
cstudent116-Apr-14 6:30 
GeneralRe: Multiple functions Pin
cstudent116-Apr-14 6:45
cstudent116-Apr-14 6:45 
GeneralRe: Multiple functions Pin
Richard MacCutchan16-Apr-14 6:55
mveRichard MacCutchan16-Apr-14 6:55 
QuestionAn entity object cannot be referenced by multiple instances of IEntityChangeTracker Pin
Šangeet Šhah15-Apr-14 20:56
professionalŠangeet Šhah15-Apr-14 20:56 
AnswerRe: An entity object cannot be referenced by multiple instances of IEntityChangeTracker Pin
Dave Kreskowiak16-Apr-14 1:31
mveDave Kreskowiak16-Apr-14 1:31 
Questionhow to access built - in class Pin
Member 1034709215-Apr-14 18:54
Member 1034709215-Apr-14 18:54 
AnswerRe: how to access built - in class Pin
Mycroft Holmes15-Apr-14 20:08
professionalMycroft Holmes15-Apr-14 20:08 

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.