Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
Default Property
Default Property
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Shawn B.
#1
Default Property
Nov 15 '05, 06:31 AM
How do I set a default property in C#? In VB we use the default keyword
before the property.
Thanks,
Shawn
Frank Oquendo
#2
Nov 15 '05, 06:31 AM
Re: Default Property
Shawn B. wrote:[color=blue]
> How do I set a default property in C#? In VB we use the default
> keyword before the property.[/color]
..NET does not support default properties.
--
There are 10 kinds of people. Those who understand binary and those who
don't.
http://code.acadx.com
Comment
Post
Cancel
Mattias Sjögren
#3
Nov 15 '05, 06:31 AM
Re: Default Property
Shawn,
[color=blue]
>How do I set a default property in C#? In VB we use the default keyword
>before the property.[/color]
You use indexer syntax:
public string this[int idx]
{
get { ... }
set { ... }
}
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment