Click here to Skip to main content
15,887,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get solution files from the dll Pin
Eddy Vluggen22-Jul-12 4:23
professionalEddy Vluggen22-Jul-12 4:23 
AnswerRe: how to get solution files from the dll Pin
Richard MacCutchan22-Jul-12 0:16
mveRichard MacCutchan22-Jul-12 0:16 
Questionmanifest files Pin
Member 823196321-Jul-12 13:27
Member 823196321-Jul-12 13:27 
AnswerRe: manifest files Pin
Trak4Net21-Jul-12 15:47
Trak4Net21-Jul-12 15:47 
AnswerRe: manifest files Pin
jschell22-Jul-12 7:00
jschell22-Jul-12 7:00 
GeneralDeclare variable as Interface vs. Class Pin
trinh.nguyen21-Jul-12 0:55
trinh.nguyen21-Jul-12 0:55 
AnswerRe: Declare variable as Interface vs. Class Pin
DaveyM6921-Jul-12 1:31
professionalDaveyM6921-Jul-12 1:31 
AnswerRe: Declare variable as Interface vs. Class Pin
Abhinav S21-Jul-12 5:28
Abhinav S21-Jul-12 5:28 
Technically, there is little to no difference, you would need to instantiate both these variables.
However, by defining var1 as an interface type, you have left the actual definition open for later, giving additional flexibility.

Based on some options, you could switch between different types at runtime when using an IList.
For e.g.
if (flag)
{
  var1 = new List<MyClass>();
}
else
{
  var 1 = new MyOwnList<MyClass>(); //a custom implementation of the IList interface.
}

Build your own survey - http://www.factile.net

Questionblock data copy from pen drive to PC using c# Pin
haldin20-Jul-12 20:13
haldin20-Jul-12 20:13 
AnswerRe: block data copy from pen drive to PC using c# Pin
Abhinav S20-Jul-12 20:39
Abhinav S20-Jul-12 20:39 
AnswerRe: block data copy from pen drive to PC using c# Pin
Eddy Vluggen21-Jul-12 8:04
professionalEddy Vluggen21-Jul-12 8:04 
QuestionInvalid argument (Converted from VB.Net) Pin
Midnight Ahri20-Jul-12 17:12
Midnight Ahri20-Jul-12 17:12 
GeneralRe: Invalid argument (Converted from VB.Net) Pin
Wes Aday20-Jul-12 17:51
professionalWes Aday20-Jul-12 17:51 
AnswerRe: Invalid argument (Converted from VB.Net) Pin
Midnight Ahri20-Jul-12 19:00
Midnight Ahri20-Jul-12 19:00 
GeneralRe: Invalid argument (Converted from VB.Net) Pin
Dave Kreskowiak21-Jul-12 3:13
mveDave Kreskowiak21-Jul-12 3:13 
QuestionSelecting thread from multiples Pin
MAW3020-Jul-12 15:54
MAW3020-Jul-12 15:54 
AnswerRe: Selecting thread from multiples Pin
Richard MacCutchan20-Jul-12 22:35
mveRichard MacCutchan20-Jul-12 22:35 
QuestionRe: Backgroundworker Thread Issue Pin
munishk20-Jul-12 6:50
munishk20-Jul-12 6:50 
AnswerRe: Backgroundworker Thread Issue Pin
Ian Shlasko20-Jul-12 7:39
Ian Shlasko20-Jul-12 7:39 
AnswerMessage Closed PinPopular
20-Jul-12 7:56
WebMaster20-Jul-12 7:56 
GeneralRe: Backgroundworker Thread Issue Pin
munishk21-Jul-12 3:50
munishk21-Jul-12 3:50 
AnswerRe: Backgroundworker Thread Issue Pin
DaveyM6920-Jul-12 7:56
professionalDaveyM6920-Jul-12 7:56 
AnswerRe: Backgroundworker Thread Issue Pin
Sunil P V20-Jul-12 20:33
Sunil P V20-Jul-12 20:33 
GeneralRe: Backgroundworker Thread Issue Pin
munishk21-Jul-12 3:50
munishk21-Jul-12 3:50 
GeneralRe: Backgroundworker Thread Issue Pin
Sunil P V21-Jul-12 18:51
Sunil P V21-Jul-12 18:51 

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.