Click here to Skip to main content
15,901,122 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: need Advice on Storing temporary variables Pin
Christian Graus23-Jan-07 15:33
protectorChristian Graus23-Jan-07 15:33 
GeneralRe: need Advice on Storing temporary variables Pin
vbbeg23-Jan-07 16:00
vbbeg23-Jan-07 16:00 
GeneralRe: need Advice on Storing temporary variables Pin
Christian Graus23-Jan-07 16:07
protectorChristian Graus23-Jan-07 16:07 
GeneralRe: need Advice on Storing temporary variables Pin
vbbeg23-Jan-07 16:14
vbbeg23-Jan-07 16:14 
GeneralRe: need Advice on Storing temporary variables Pin
Christian Graus23-Jan-07 16:47
protectorChristian Graus23-Jan-07 16:47 
GeneralRe: need Advice on Storing temporary variables Pin
KevinMac23-Jan-07 16:50
KevinMac23-Jan-07 16:50 
GeneralRe: need Advice on Storing temporary variables Pin
vbbeg23-Jan-07 16:59
vbbeg23-Jan-07 16:59 
GeneralTried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog23-Jan-07 14:19
professionalcode-frog23-Jan-07 14:19 
I don't know VB .Net at all and I have a class that I used on online converter to ship to VB. The problem is it's now raising a weird error that I don't understand as I don't know VB .Net at all.

Here is the error:
Error 1 Too few type arguments to 'System.Collections.Generic.List(Of T)'. C:\IRONSPEED4.1.0\BOSTONUNIVERSITY\App_Code\Question.vb 34 12 C:\IRONSPEED4.1.0\BOSTONUNIVERSITY\

At line 34. I can hardly understand VB .Net when I look at it. I
ran this code through a C# to VB .Net converter that has always
done a good job but I'm lost as to what syntax VB expects when it
is attempting to cast an inherits...

using System;
using System.Collections.Generic;

[Serializable ()]
public class Question
{
public String QuestionID;
public String QuestionText;

public Question ()
{
}

public Question (String id, String text)
{
QuestionID = id;
QuestionText = text;
}
}

[Serializable ()]
public class QuestionOption
{
public String OptionID;
public String OptionValue;

public QuestionOption ()
{
}

public QuestionOption (String id, String value)
{
OptionID = id;
OptionValue = value;
}
}
'*****
'***** Here is the first error referenced at Line 34
'*****
[Serializable ()]
public class QuestionList : List<Question>
{
public QuestionList ()
: base ()
{
}

public QuestionList (IEnumerable<Question> collection)
: base (collection)
{
}

public QuestionList (Int32 capacity)
: base (capacity)
{
}
}

[Serializable ()]
public class QuestionOptionList : List<QuestionOption>
{
public QuestionOptionList ()
: base ()
{
}

public QuestionOptionList (IEnumerable<QuestionOption> collection)
: base (collection)
{
}

public QuestionOptionList (Int32 capacity)
: base (capacity)
{
}
}


<div class='ForumSig'></div>
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Christian Graus23-Jan-07 14:26
protectorChristian Graus23-Jan-07 14:26 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog23-Jan-07 14:39
professionalcode-frog23-Jan-07 14:39 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Christian Graus23-Jan-07 14:49
protectorChristian Graus23-Jan-07 14:49 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog23-Jan-07 16:32
professionalcode-frog23-Jan-07 16:32 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Christian Graus23-Jan-07 16:47
protectorChristian Graus23-Jan-07 16:47 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Dave Doknjas24-Jan-07 13:17
Dave Doknjas24-Jan-07 13:17 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog24-Jan-07 13:19
professionalcode-frog24-Jan-07 13:19 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
Dave Doknjas24-Jan-07 13:32
Dave Doknjas24-Jan-07 13:32 
GeneralRe: Tried converting C# to VB .Net and am stuck with a cast on Inherits... Pin
code-frog31-Jan-07 13:35
professionalcode-frog31-Jan-07 13:35 
QuestionEncapsulation problem. Pin
cstrader23223-Jan-07 10:40
cstrader23223-Jan-07 10:40 
AnswerRe: Encapsulation problem. Pin
Christian Graus23-Jan-07 10:59
protectorChristian Graus23-Jan-07 10:59 
GeneralRe: Encapsulation problem. Pin
cstrader23223-Jan-07 12:13
cstrader23223-Jan-07 12:13 
GeneralRe: Encapsulation problem. Pin
Christian Graus23-Jan-07 12:19
protectorChristian Graus23-Jan-07 12:19 
GeneralRe: Encapsulation problem. Pin
TwoFaced23-Jan-07 13:19
TwoFaced23-Jan-07 13:19 
GeneralRe: Encapsulation problem. Pin
cstrader23223-Jan-07 14:28
cstrader23223-Jan-07 14:28 
GeneralRe: Encapsulation problem. Pin
cstrader23224-Jan-07 2:22
cstrader23224-Jan-07 2:22 
GeneralRe: Encapsulation problem. Pin
TwoFaced24-Jan-07 6:31
TwoFaced24-Jan-07 6:31 

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.