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

C#

 
AnswerRe: to retrieve the word document from sqlserver Pin
Giorgi Dalakishvili19-Jan-09 0:41
mentorGiorgi Dalakishvili19-Jan-09 0:41 
GeneralRe: to retrieve the word document from sqlserver Pin
gopal_nivas8419-Jan-09 0:48
gopal_nivas8419-Jan-09 0:48 
GeneralRe: to retrieve the word document from sqlserver Pin
Giorgi Dalakishvili19-Jan-09 0:50
mentorGiorgi Dalakishvili19-Jan-09 0:50 
QuestionCould you please tell me the advantage of using the interface to code? Pin
mctramp16819-Jan-09 0:16
mctramp16819-Jan-09 0:16 
AnswerRe: Could you please tell me the advantage of using the interface to code? Pin
SeMartens19-Jan-09 0:23
SeMartens19-Jan-09 0:23 
AnswerRe: Could you please tell me the advantage of using the interface to code? Pin
DaveyM6919-Jan-09 1:14
professionalDaveyM6919-Jan-09 1:14 
AnswerRe: Could you please tell me the advantage of using the interface to code? Pin
Alan Balkany19-Jan-09 3:38
Alan Balkany19-Jan-09 3:38 
AnswerRe: Could you please tell me the advantage of using the interface to code? Pin
Guffa19-Jan-09 3:45
Guffa19-Jan-09 3:45 
In short an interface is a contract for an ability that you can implement in a class.

For example, a class can implement the IComparable interface, which means that you can compare one instance of the class to another. A method like List.Sort can then sort a list of instances, without the need to know anything at all about the class other than it implements the interface.

To make a method more flexible you can accept parameters of an interface type instead of a specific class. If for example your method needs to loop through some items, it can accept a parameter of the interface type IEnumerable instead of an array. Then your method can be used with any class that implements the interface, like an array, a List, a Queue, a Dictionary.KeyCollection, et.c.

You can also create interfaces to use between your own classes.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Could you please tell me the advantage of using the interface to code? Pin
CodingYoshi19-Jan-09 4:09
CodingYoshi19-Jan-09 4:09 
QuestionArrayList search Pin
kanchoette18-Jan-09 23:55
kanchoette18-Jan-09 23:55 
AnswerRe: ArrayList search Pin
SeMartens18-Jan-09 23:59
SeMartens18-Jan-09 23:59 
GeneralRe: ArrayList search Pin
CodingYoshi19-Jan-09 4:20
CodingYoshi19-Jan-09 4:20 
Questionmdi forms with parent and child interaction Pin
bfis10813718-Jan-09 23:38
bfis10813718-Jan-09 23:38 
AnswerRe: mdi forms with parent and child interaction Pin
harold aptroot18-Jan-09 23:44
harold aptroot18-Jan-09 23:44 
GeneralRe: mdi forms with parent and child interaction Pin
DaveyM6919-Jan-09 1:16
professionalDaveyM6919-Jan-09 1:16 
GeneralRe: mdi forms with parent and child interaction Pin
CodingYoshi19-Jan-09 4:16
CodingYoshi19-Jan-09 4:16 
Questionstrange Http timeout issue Pin
George_George18-Jan-09 23:11
George_George18-Jan-09 23:11 
QuestionHow to translate the property item name of the control in the properties window? Pin
mctramp16818-Jan-09 21:02
mctramp16818-Jan-09 21:02 
AnswerRe: How to translate the property item name of the control in the properties window? Pin
Eddy Vluggen18-Jan-09 22:02
professionalEddy Vluggen18-Jan-09 22:02 
GeneralRe: How to translate the property item name of the control in the properties window? Pin
mctramp16819-Jan-09 0:13
mctramp16819-Jan-09 0:13 
AnswerRe: How to translate the property item name of the control in the properties window? Pin
Eddy Vluggen19-Jan-09 1:28
professionalEddy Vluggen19-Jan-09 1:28 
GeneralRe: How to translate the property item name of the control in the properties window? Pin
mctramp16819-Jan-09 15:22
mctramp16819-Jan-09 15:22 
Questionhow to detect windowstate outside form? Pin
ping_jacob18-Jan-09 20:46
ping_jacob18-Jan-09 20:46 
AnswerRe: how to detect windowstate outside form? [modified] Pin
Luc Pattyn18-Jan-09 21:15
sitebuilderLuc Pattyn18-Jan-09 21:15 
GeneralRe: how to detect windowstate outside form? Pin
ping_jacob18-Jan-09 22:46
ping_jacob18-Jan-09 22: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.