Click here to Skip to main content
14,364,458 members

.NET Framework

 
QuestionImplementing some broadcast udp protocol Pin
ohad_2923-Feb-07 4:31
memberohad_2923-Feb-07 4:31 
QuestionMailMessage.From vs. MailMessage.Sender in .NET 2.0 Pin
SindyatIndy22-Feb-07 7:29
memberSindyatIndy22-Feb-07 7:29 
AnswerRe: MailMessage.From vs. MailMessage.Sender in .NET 2.0 Pin
Scott Dorman22-Feb-07 19:02
professionalScott Dorman22-Feb-07 19:02 
AnswerRe: Which one is faster? Pin
Pete O'Hanlon22-Feb-07 0:05
protectorPete O'Hanlon22-Feb-07 0:05 
GeneralRe: Which one is faster? Pin
Dave Kreskowiak22-Feb-07 4:20
mveDave Kreskowiak22-Feb-07 4:20 
GeneralRe: Which one is faster? Pin
Pete O'Hanlon22-Feb-07 4:43
protectorPete O'Hanlon22-Feb-07 4:43 
GeneralRe: Which one is faster? Pin
Scott Dorman22-Feb-07 19:04
professionalScott Dorman22-Feb-07 19:04 
QuestionConverting from Base Class to Child Class Pin
bertvan21-Feb-07 22:43
memberbertvan21-Feb-07 22:43 
Hello,

I have a class, let's say, Document and a class which inherits from Document: DocumentLinked
DocumentLinked adds an extra property, linkedId

Now I'm searching through a list of documents, and I want to select some of them, and create DocumentLinked-objects out of them. But conversion fails.

I tried Ctype overloading, which, according to the compiler, I cannot do because I would convert from a base-class.

I quite bummed here.

Some code:

<br />
<pre><br />
Public Class DocumentLinked<br />
    Inherits Document<br />
<br />
    Private _linkedId As Integer<br />
    Public Property LinkedId() As Integer<br />
        Get<br />
            Return _linkedId<br />
        End Get<br />
        Set(ByVal value As Integer)<br />
            _linkedId = value<br />
        End Set<br />
    End Property<br />
<br />
<br />
End Class<br />
<br />
'...<br />
' selectedDocument is instance of Document<br />
' linkedDocument is List( Of DocumentLinked)<br />
doc.LinkedDocuments.Add(CType(selectedDocument, DocumentLinked))<br />
<br />
</pre><br />

AnswerRe: Converting from Base Class to Child Class [modified] Pin
Colin Angus Mackay21-Feb-07 23:16
memberColin Angus Mackay21-Feb-07 23:16 
GeneralRe: Converting from Base Class to Child Class Pin
bertvan21-Feb-07 23:40
memberbertvan21-Feb-07 23:40 
GeneralRe: Converting from Base Class to Child Class Pin
Colin Angus Mackay22-Feb-07 0:51
memberColin Angus Mackay22-Feb-07 0:51 
Questionif there any disadvantageof using dot net 2.0 and 1.1on same server Pin
JayPrakash Kulkarni21-Feb-07 20:56
memberJayPrakash Kulkarni21-Feb-07 20:56 
AnswerRe: if there any disadvantageof using dot net 2.0 and 1.1on same server Pin
Pete O'Hanlon22-Feb-07 0:02
protectorPete O'Hanlon22-Feb-07 0:02 
Questionrun .net project on os without .net framework Pin
shwetas21-Feb-07 0:42
membershwetas21-Feb-07 0:42 
AnswerRe: run .net project on os without .net framework Pin
__DanC__21-Feb-07 1:49
member__DanC__21-Feb-07 1:49 
AnswerRe: run .net project on os without .net framework Pin
Jakub Mller21-Feb-07 2:44
memberJakub Mller21-Feb-07 2:44 
AnswerRe: run .net project on os without .net framework Pin
kubben21-Feb-07 4:52
memberkubben21-Feb-07 4:52 
AnswerRe: run .net project on os without .net framework Pin
led mike21-Feb-07 11:15
memberled mike21-Feb-07 11:15 
AnswerRe: run .net project on os without .net framework Pin
Christian Graus21-Feb-07 11:23
protectorChristian Graus21-Feb-07 11:23 
GeneralRe: run .net project on os without .net framework Pin
Brady Kelly21-Feb-07 20:59
memberBrady Kelly21-Feb-07 20:59 
AnswerRe: run .net project on os without .net framework Pin
Vasudevan Deepak Kumar22-Feb-07 18:46
memberVasudevan Deepak Kumar22-Feb-07 18:46 
QuestionText file creation Pin
Harish H M20-Feb-07 23:21
memberHarish H M20-Feb-07 23:21 
AnswerRe: Text file creation Pin
Krish - KP21-Feb-07 4:49
memberKrish - KP21-Feb-07 4:49 
QuestionLoading an assembly at runtime Pin
kristmun20-Feb-07 21:36
memberkristmun20-Feb-07 21:36 
AnswerRe: Loading an assembly at runtime Pin
__DanC__20-Feb-07 22:43
member__DanC__20-Feb-07 22:43 

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.