By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,202 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,202 IT Pros & Developers. It's quick & easy.

arguments for a property

P: n/a
I was wondering if it is possible to send multiple arguments to a
property in C# like you can do with a method such as:

public double Average(int x, int y, int z) or

public double Average(params int [] numArray)

I have looked through the books I have, but I see no way to send more
than one argument at a time.

Z.K.
May 18 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I was wondering if it is possible to send multiple arguments to a
property in C# like you can do with a method such as:


Only for default properties, aka indexers

public double this[int x, int y, int z]
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
May 18 '06 #2

P: n/a
Hi,
I have looked through the books I have, but I see no way to send more than
one argument at a time.


It would look like a method then :

instance.Property( 1, 2, 3);

So, why not use a method in the first place?

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
May 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.