Re: Не компилируется код - почему?
От: Aggtaa Россия  
Дата: 20.09.04 10:44
Оценка:
Здравствуйте, Northrop, Вы писали:

N>
N>        public interface IXmlDataManager
N>        {
N>                DataSet GetOfficesListAsDataSet();
N>        }
N>
N>        public class ConnectDPCObj: MarshalByRefObject, IXmlDataManager
N>        {
N>                private DataSet GetOfficesListAsDataSet()
N>                public DataSet GetOfficesListAsDataSet()
N>        }
N>

N>Почему? Где про такое поведение компилера сказано?

Compiler Error CS0536

'class' does not implement interface member 'interface member'. 'class member' is static, not public, or has the wrong return type

'class' does not implement interface member 'member1'. 'member2' is either static, not public, or has the wrong return type.

The compiler did not detect an interface member implementation. A declaration may be present that almost implements the interface member. Check for the following syntax errors in the declaration for the interface member:

public keyword is omitted.
Return type does not match.
static keyword is present.

A.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.