Aha - got you. Thanks a lot Mattias.
-----Original Message-----
From: Mattias Sj�gren [mailto:[EMAIL PROTECTED]
Sent: 11 November 2003 01:05
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] strange problem returning interface
reference from static methods
Julian,
> public static Ii B {
> get { return B.Instance; }
> }
In this context 'B' refers to the property itself, not the class B. So
you're trying to recursively call the property get accessor. But since the
property returns an Ii instance, and Ii doesn't have an Instance property,
it doesn't compile.
Mattias
--
Mattias Sj�gren
[EMAIL PROTECTED]
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
Guerrilla ASP.NET, 10 Nov 2003 in London and 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnet
Guerrilla .NET, 8 Dec 2003, in Los Angeles
http://www.develop.com/courses/gdotnet
View archives and manage your subscription(s) at http://discuss.develop.com
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
IMPORTANT NOTICE
This communication contains information, which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender. The opinions
expressed within this communication are not necessarily those expressed by
Teletext Ltd.
Teletext Ltd.
Building 10
Chiswick Park
566 Chiswick High Road
London W4 5TS
Registered in England number 2694814
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
Guerrilla ASP.NET, 10 Nov 2003 in London and 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnet
Guerrilla .NET, 8 Dec 2003, in Los Angeles
http://www.develop.com/courses/gdotnet
View archives and manage your subscription(s) at http://discuss.develop.com