|
-
Jul 3rd, 2005, 05:10 AM
#1
[RESOLVED] C# equivalent of Mybase.New()?
What is the C# equivalent of VB.Net's
??
I'm inheriting from ApplicationException and the normal practice in VB.net is to call the the base class constructor from within the derived class's constructor.
At the moment I have this, where I have shown the line I want to change...
Code:
public class SudokuGridIllegalException : ApplicationException
{
//constructor of my derived class
public SudokuGridIllegalException(String message)
{
// call the base's constructor
/* wrong */ mybase.New(message);
}
}
Is this even the way you do this in C#? *noobz*
I don't live here any more.
-
Jul 3rd, 2005, 06:31 AM
#2
Re: [RESOLVED] C# equivalent of Mybase.New()?
Never mind, sorted it out...
public class SudokuGridIllegalException : ApplicationException
{
public SudokuGridIllegalException(String message) : base(message)
{
}
}
I don't live here any more.
-
Jul 3rd, 2005, 06:51 AM
#3
Re: [RESOLVED] C# equivalent of Mybase.New()?
Hmmm...how did you find that out...hmmm...
-
Jul 3rd, 2005, 11:33 AM
#4
Re: [RESOLVED] C# equivalent of Mybase.New()?
Some idiot on MSN just told me.
-
Jul 3rd, 2005, 02:17 PM
#5
Re: [RESOLVED] C# equivalent of Mybase.New()?
what are you doing learning C# you moron
take a look at my thread
http://vbforums.com/showthread.php?t=344688
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 4th, 2005, 03:55 AM
#6
Re: [RESOLVED] C# equivalent of Mybase.New()?
-
Jul 4th, 2005, 03:47 PM
#7
Re: [RESOLVED] C# equivalent of Mybase.New()?
 Originally Posted by wossname
You don't like C#?
i do but all your c# are belong to me
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|