Click here to Skip to main content
15,888,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help me finish this solution Pin
Heath Stewart13-Feb-04 3:42
protectorHeath Stewart13-Feb-04 3:42 
GeneralUsing Interfaces Practically Pin
Anonymous12-Feb-04 19:20
Anonymous12-Feb-04 19:20 
GeneralRe: Using Interfaces Practically Pin
Mazdak12-Feb-04 19:27
Mazdak12-Feb-04 19:27 
GeneralRe: Using Interfaces Practically Pin
Anonymous13-Feb-04 15:56
Anonymous13-Feb-04 15:56 
GeneralRe: Using Interfaces Practically Pin
Nick Seng12-Feb-04 21:44
Nick Seng12-Feb-04 21:44 
GeneralRe: Using Interfaces Practically Pin
Brian Delahunty13-Feb-04 0:48
Brian Delahunty13-Feb-04 0:48 
GeneralRe: Using Interfaces Practically Pin
Jonathan de Halleux13-Feb-04 2:39
Jonathan de Halleux13-Feb-04 2:39 
GeneralRe: Using Interfaces Practically Pin
paw197213-Feb-04 5:33
paw197213-Feb-04 5:33 
there's a couple reasons I use an interface. one of the biggest is so that I can write a function that can handle a generic reference of a class

here's an example I used it for

I created an ILookupTable interface that had methods like
Add(), Edit(), Delete(), SortUp(), SortDown() etc.

and then created several classes that implmented this interface
StateLookupTable,
TelephoneTypeLookupTable,
AddressTypeLookupTable

From there I could create one GUI that handled maintaining my lookup tables. When I needed to pass a class as a parameter, I would have a call like: public void MyCall(ILookupTable table)

and I knew I could call all of the properties and methods in that interface without actually having to know which particular class I was working with.


GeneralMaking Variables In C# Global Pin
Eric Houser12-Feb-04 18:44
Eric Houser12-Feb-04 18:44 
GeneralRe: Making Variables In C# Global Pin
John Kuhn12-Feb-04 18:49
John Kuhn12-Feb-04 18:49 
GeneralRe: Making Variables In C# Global Pin
Eric Houser12-Feb-04 18:54
Eric Houser12-Feb-04 18:54 
GeneralRe: Making Variables In C# Global Pin
John Kuhn12-Feb-04 19:07
John Kuhn12-Feb-04 19:07 
GeneralRe: Making Variables In C# Global Pin
John Kuhn12-Feb-04 18:52
John Kuhn12-Feb-04 18:52 
GeneralRe: Making Variables In C# Global Pin
Meysam Mahfouzi12-Feb-04 18:59
Meysam Mahfouzi12-Feb-04 18:59 
GeneralRe: Making Variables In C# Global Pin
Eric Houser12-Feb-04 19:07
Eric Houser12-Feb-04 19:07 
GeneralArabic to roman Pin
GetOn&GetGoing12-Feb-04 18:30
GetOn&GetGoing12-Feb-04 18:30 
GeneralRe: Arabic to roman Pin
John Kuhn12-Feb-04 18:46
John Kuhn12-Feb-04 18:46 
GeneralRe: Arabic to roman Pin
GetOn&GetGoing12-Feb-04 18:50
GetOn&GetGoing12-Feb-04 18:50 
GeneralRe: Arabic to roman Pin
John Kuhn12-Feb-04 18:57
John Kuhn12-Feb-04 18:57 
GeneralRe: Arabic to roman Pin
GetOn&GetGoing12-Feb-04 19:08
GetOn&GetGoing12-Feb-04 19:08 
GeneralRe: Arabic to roman Pin
John Kuhn12-Feb-04 19:18
John Kuhn12-Feb-04 19:18 
GeneralInterview Pin
GetOn&GetGoing12-Feb-04 17:41
GetOn&GetGoing12-Feb-04 17:41 
GeneralRe: Interview Pin
John Kuhn12-Feb-04 18:13
John Kuhn12-Feb-04 18:13 
GeneralRe: Interview Pin
CWIZO13-Feb-04 0:30
CWIZO13-Feb-04 0:30 
GeneralRe: Interview Pin
Kannan Kalyanaraman13-Feb-04 1:14
Kannan Kalyanaraman13-Feb-04 1:14 

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.