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

C#

 
GeneralRe: access data base Pin
PIEBALDconsult7-Apr-10 17:23
mvePIEBALDconsult7-Apr-10 17:23 
GeneralRe: access data base Pin
Not Active8-Apr-10 1:37
mentorNot Active8-Apr-10 1:37 
Questionhow to load data from a xml file to sqlserver table? Pin
babak dev7-Apr-10 9:12
babak dev7-Apr-10 9:12 
AnswerRe: how to load data from a xml file to sqlserver table? Pin
OriginalGriff7-Apr-10 9:14
mveOriginalGriff7-Apr-10 9:14 
GeneralRe: how to load data from a xml file to sqlserver table? Pin
babak dev7-Apr-10 9:40
babak dev7-Apr-10 9:40 
GeneralRe: how to load data from a xml file to sqlserver table? Pin
Not Active7-Apr-10 10:07
mentorNot Active7-Apr-10 10:07 
GeneralRe: how to load data from a xml file to sqlserver table? Pin
babak dev7-Apr-10 19:59
babak dev7-Apr-10 19:59 
QuestionActivator.CreateInstance error [modified] Pin
Fayu7-Apr-10 9:00
Fayu7-Apr-10 9:00 
I am trying to create a class that is NOT abstract but is inherited from an abstract class. When trying to create this class using Activator.CreateInstance, I get an error saying: "Cannot create an abstract class". However, I am not tyring to create an instance of an abstract class rather a class that can be instanciated and is not abstract. See code below...

Any ideas?

Thanks in advance.

<pre>
namespace Test
{
[Serializable]
public abstract class Cls1
{
...
public static Cls1 Open()
{
Cls1 provider = null;
string typeName = "Test.Cls3";
Type t = Type.GetType(typeName);
provider = Activator.CreateInstance(t) as Cls1; // <----------- Error Here
}
}

[Serializable]
public abstract class Cls2 : Cls1
{
...
}

[Serializable]
public sealed class Cls3 : Cls2
{
...
}
}
</pre>


-- Modified Wednesday, April 7, 2010 3:08 PM
AnswerRe: Activator.CreateInstance error Pin
Fayu7-Apr-10 9:09
Fayu7-Apr-10 9:09 
QuestionAnyone worked with Microsoft.Office.Interop.MSProject? Pin
ziwez07-Apr-10 8:29
ziwez07-Apr-10 8:29 
AnswerRe: Anyone worked with Microsoft.Office.Interop.MSProject? Pin
William Winner7-Apr-10 12:27
William Winner7-Apr-10 12:27 
QuestionChanging the text properties of a text box. Pin
Darrall7-Apr-10 8:18
Darrall7-Apr-10 8:18 
AnswerRe: Changing the text properties of a text box. Pin
OriginalGriff7-Apr-10 8:30
mveOriginalGriff7-Apr-10 8:30 
GeneralRe: Changing the text properties of a text box. Pin
Darrall7-Apr-10 9:04
Darrall7-Apr-10 9:04 
GeneralRe: Changing the text properties of a text box. Pin
OriginalGriff7-Apr-10 9:35
mveOriginalGriff7-Apr-10 9:35 
GeneralRe: Changing the text properties of a text box. Pin
Darrall7-Apr-10 10:00
Darrall7-Apr-10 10:00 
GeneralRe: Changing the text properties of a text box. Pin
OriginalGriff7-Apr-10 22:02
mveOriginalGriff7-Apr-10 22:02 
GeneralRe: Changing the text properties of a text box. Pin
Darrall8-Apr-10 5:10
Darrall8-Apr-10 5:10 
GeneralRe: Changing the text properties of a text box. Pin
OriginalGriff8-Apr-10 5:23
mveOriginalGriff8-Apr-10 5:23 
GeneralRe: Changing the text properties of a text box. Pin
Darrall8-Apr-10 7:22
Darrall8-Apr-10 7:22 
Questionproblem when running a delay signed assembly in another pc Pin
prasadbuddhika7-Apr-10 6:33
prasadbuddhika7-Apr-10 6:33 
QuestionWhile Loop sucking up all processor's cpu cycles Pin
BuggingMe7-Apr-10 6:17
BuggingMe7-Apr-10 6:17 
AnswerRe: While Loop sucking up all processor's cpu cycles Pin
Not Active7-Apr-10 6:41
mentorNot Active7-Apr-10 6:41 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
BuggingMe7-Apr-10 6:58
BuggingMe7-Apr-10 6:58 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
Not Active7-Apr-10 7:08
mentorNot Active7-Apr-10 7:08 

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.