Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interfaces Pin
leppie27-Sep-02 13:43
leppie27-Sep-02 13:43 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 14:16
Paul Riley27-Sep-02 14:16 
GeneralRe: Interfaces Pin
afronaut1-Oct-02 10:35
afronaut1-Oct-02 10:35 
GeneralClass Builder Wizard Pin
afronaut27-Sep-02 5:54
afronaut27-Sep-02 5:54 
GeneralRe: Class Builder Wizard Pin
leppie27-Sep-02 6:51
leppie27-Sep-02 6:51 
GeneralRe: Class Builder Wizard Pin
afronaut27-Sep-02 11:08
afronaut27-Sep-02 11:08 
Questionwhy I cann't cast the object???? Pin
fftongzhi27-Sep-02 0:23
fftongzhi27-Sep-02 0:23 
AnswerRe: why I cann't cast the object???? Pin
leppie27-Sep-02 2:34
leppie27-Sep-02 2:34 
fftongzhi wrote:
Type t = a.GetType("mydll.myClass");
object obj = Activator.CreateInstance(t);


Type t2 = a.GetType("mydll.myClass");
Type t = t2.GetInterface("MyInterface");
MyInterface obj = (MyInterface) Activator.CreateInstance(t);

Does that work?

Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 16:02
fftongzhi27-Sep-02 16:02 
GeneralRe: why I cann't cast the object???? Pin
leppie27-Sep-02 16:21
leppie27-Sep-02 16:21 
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 16:36
fftongzhi27-Sep-02 16:36 
AnswerRe: why I cann't cast the object???? Pin
Eric Gunnerson (msft)27-Sep-02 8:43
Eric Gunnerson (msft)27-Sep-02 8:43 
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 16:21
fftongzhi27-Sep-02 16:21 
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 20:30
fftongzhi27-Sep-02 20:30 
GeneralADO.NET with C# Pin
Rickard Andersson2027-Sep-02 0:20
Rickard Andersson2027-Sep-02 0:20 
GeneralRe: ADO.NET with C# Pin
leppie27-Sep-02 2:38
leppie27-Sep-02 2:38 
GeneralRe: ADO.NET with C# Pin
Rickard Andersson2027-Sep-02 3:55
Rickard Andersson2027-Sep-02 3:55 
GeneralRe: ADO.NET with C# Pin
David Stone27-Sep-02 8:42
sitebuilderDavid Stone27-Sep-02 8:42 
GeneralRe: ADO.NET with C# Pin
Derek Smigelski28-Sep-02 10:06
Derek Smigelski28-Sep-02 10:06 
GeneralRe: ADO.NET with C# Pin
David Stone28-Sep-02 10:32
sitebuilderDavid Stone28-Sep-02 10:32 
Questionmay i read the same object on network from a file? Pin
imran_rafique26-Sep-02 16:27
imran_rafique26-Sep-02 16:27 
AnswerRe: may i read the same object on network from a file? Pin
Rickard Andersson2026-Sep-02 20:41
Rickard Andersson2026-Sep-02 20:41 
Questionhow to show gif image on toolbar? Pin
bclangren26-Sep-02 15:02
bclangren26-Sep-02 15:02 
AnswerRe: how to show gif image on toolbar? Pin
Luis Alonso Ramos27-Sep-02 4:36
Luis Alonso Ramos27-Sep-02 4:36 
Generalctl+c problem Pin
Anonymous26-Sep-02 9:53
Anonymous26-Sep-02 9:53 

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.