Click here to Skip to main content
15,907,913 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get type of derived class from base class Pin
Heath Stewart16-Jun-04 10:58
protectorHeath Stewart16-Jun-04 10:58 
GeneralRe: Get type of derived class from base class Pin
joev16-Jun-04 11:09
joev16-Jun-04 11:09 
Generalline color of textBox or listBox Pin
Member 117814516-Jun-04 2:03
Member 117814516-Jun-04 2:03 
GeneralRe: line color of textBox or listBox Pin
LongRange.Shooter16-Jun-04 4:13
LongRange.Shooter16-Jun-04 4:13 
GeneralRe: line color of textBox or listBox Pin
Member 117814516-Jun-04 4:26
Member 117814516-Jun-04 4:26 
GeneralInterfaces in C# Pin
saud_a_k16-Jun-04 1:46
saud_a_k16-Jun-04 1:46 
GeneralRe: Interfaces in C# Pin
IamADotNetGuy16-Jun-04 3:39
IamADotNetGuy16-Jun-04 3:39 
GeneralRe: Interfaces in C# Pin
LongRange.Shooter16-Jun-04 4:27
LongRange.Shooter16-Jun-04 4:27 
If you have the interface and the class in the same project then you defeat the purpose of the interface ... which is to be a portable representation of that implementation.

When you create your interface you would compile it.
In the classes that implement it, you would include reference to the DLL. I don't remember if I added the using statement, but a quick compile will answer that question for you. (If the compile says you are missing a using then add the using) ... my VS build is temporarily broken to get a specific answer, but creating reference, adding the interface implementation and then doing the compile is how you discover your own answers.

The major advantage to the use of interfaces is that I don't have to know what implementation I'm working with. So if I have an IAmFunky interface and there are 20 implementations. My system just has to refer to the implemenations via the interface IAmFunky myObject = new IAmFunky();

______________________________
The Tao gave birth to machine language.
Machine language gave birth to the assembler.
The assembler gave birth to ten thousand languages.
Each language has its purpose, however humble.
Each language expresses the Yin and Yang of software.
Each language has its place within the Tao.
Beauty exists because we give a name to C#.
Bad exists because we give a name to COBOL.
GeneralRe: Interfaces in C# Pin
saud_a_k16-Jun-04 18:40
saud_a_k16-Jun-04 18:40 
GeneralRe: Interfaces in C# Pin
Stefan Troschuetz16-Jun-04 19:31
Stefan Troschuetz16-Jun-04 19:31 
GeneralRe: Interfaces in C# Pin
saud_a_k16-Jun-04 19:41
saud_a_k16-Jun-04 19:41 
GeneralRe: Interfaces in C# Pin
Stefan Troschuetz16-Jun-04 19:46
Stefan Troschuetz16-Jun-04 19:46 
GeneralRe: Interfaces in C# Pin
LongRange.Shooter17-Jun-04 3:22
LongRange.Shooter17-Jun-04 3:22 
GeneralDate Picker in DataGrid Pin
sulmun16-Jun-04 0:19
sulmun16-Jun-04 0:19 
GeneralRe: Date Picker in DataGrid Pin
Heath Stewart16-Jun-04 4:18
protectorHeath Stewart16-Jun-04 4:18 
GeneralPrintPreviewDialog? - HowTo convert string to PrintDocument! Pin
QzRz16-Jun-04 0:12
QzRz16-Jun-04 0:12 
GeneralRe: PrintPreviewDialog? - HowTo convert string to PrintDocument! Pin
exhaulted16-Jun-04 0:41
exhaulted16-Jun-04 0:41 
GeneralRe: PrintPreviewDialog? - HowTo convert string to PrintDocument! Pin
QzRz16-Jun-04 0:52
QzRz16-Jun-04 0:52 
GeneralRe: PrintPreviewDialog? - HowTo convert string to PrintDocument! Pin
exhaulted16-Jun-04 1:09
exhaulted16-Jun-04 1:09 
GeneralRe: PrintPreviewDialog? - HowTo convert string to PrintDocument! Pin
QzRz16-Jun-04 1:29
QzRz16-Jun-04 1:29 
GeneralRestricting new rows on a datagrid Pin
exhaulted16-Jun-04 0:08
exhaulted16-Jun-04 0:08 
GeneralRe: Restricting new rows on a datagrid Pin
the last free name16-Jun-04 3:37
the last free name16-Jun-04 3:37 
GeneralRe: Restricting new rows on a datagrid Pin
exhaulted16-Jun-04 3:59
exhaulted16-Jun-04 3:59 
GeneralRe: Restricting new rows on a datagrid Pin
Heath Stewart16-Jun-04 4:13
protectorHeath Stewart16-Jun-04 4:13 
GeneralRe: Restricting new rows on a datagrid Pin
exhaulted16-Jun-04 4:55
exhaulted16-Jun-04 4:55 

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.