[Mono-list] Accessing Property ParameterName in Class SqlParameter
Paolo Molaro
lupus@ximian.com
Fri, 23 Aug 2002 13:23:49 +0200
On 08/21/02 Daniel Morgan wrote:
> $ monomcs Parm.cs -r System.Data.dll
> Parm.cs(39) error CS0154: indexer can not be used in this context, because
> it la
> cks a `get' accessor
> Compilation failed: 1 error(s), 0 warnings
[...]
> What am I doing wrong?
You're not providing a complete test case that we can compile and
use to reproduce your issue.
The following test, for example, is compiled fine by mcs from cvs.
using System.Data;
class T {
static IDataParameter get_param () {
return null;
}
static void Main () {
IDataParameter p = get_param ();
if (p != null)
System.Console.WriteLine (p.ParameterName);
}
}
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better