|
-
May 12th, 2004, 01:40 PM
#1
MustOverride in C#?
well I guess I cant ask these in the C# section since you have to know VB to answer me
I think the equivalent keyword for MustOverride is "abstract", correct?
Now I want to have a MustOverride ReadOnly Property. I can't figure out how to declare that...
also what does "virtual" do?
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!!
-
May 12th, 2004, 04:22 PM
#2
Fanatic Member
Never did a property before but you should be able to do it, since it is really just compiled into a method anyway.
Try:
VB Code:
Public MustOverride ReadOnly Property test() As Boolean
That's it. HTH.
-
May 12th, 2004, 04:44 PM
#3
Frenzied Member
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
May 12th, 2004, 10:24 PM
#4
Frenzied Member
Re: MustOverride in C#?
Originally posted by MrPolite
well I guess I cant ask these in the C# section since you have to know VB to answer me
I think the equivalent keyword for MustOverride is "abstract", correct?
Now I want to have a MustOverride ReadOnly Property. I can't figure out how to declare that...
also what does "virtual" do?
Virtual makes the property or method overridable.
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
|