473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What problem with following code?

internal interface IBaseData : BaseView.IViewProvider
{
Color BackColor { get ; set ; }
}

internal class BaseView
{

internal interface IViewProvider
{
BaseView View { get ; }
}
internal class BaseData : IViewProvider, IBaseData
{

public BaseView View
{
get
{
return null;
}
}

public virtual Color BackColor
{
get
{
return Color.Empty;
}
set
{

}
}
public virtual Image BackgroundImage
{
get
{
return null;
}
set
{
}
}
}
}

Thanks!
Nov 16 '05 #1
3 1125
I don't have Visual Studio in front of me, so I cannot see the error message
you are getting.

However, I can see that you have IBaseData depending on an interface
(IViewProvider) that it cannot see, since it is defined as Internal in an
enclosed scope.

--- Nick
"Aloneplayer" <al*********@msn.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
internal interface IBaseData : BaseView.IViewProvider
{
Color BackColor { get ; set ; }
}

internal class BaseView
{

internal interface IViewProvider
{
BaseView View { get ; }
}
internal class BaseData : IViewProvider, IBaseData
{

public BaseView View
{
get
{
return null;
}
}

public virtual Color BackColor
{
get
{
return Color.Empty;
}
set
{

}
}
public virtual Image BackgroundImage
{
get
{
return null;
}
set
{
}
}
}
}

Thanks!

Nov 16 '05 #2
Aloneplayer <al*********@msn.com> wrote:

<snip>

It would help if you said what was going wrong...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #3
Move interface IViewProvider out of the class.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Aloneplayer" <al*********@msn.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
internal interface IBaseData : BaseView.IViewProvider
{
Color BackColor { get ; set ; }
}

internal class BaseView
{

internal interface IViewProvider
{
BaseView View { get ; }
}
internal class BaseData : IViewProvider, IBaseData
{

public BaseView View
{
get
{
return null;
}
}

public virtual Color BackColor
{
get
{
return Color.Empty;
}
set
{

}
}
public virtual Image BackgroundImage
{
get
{
return null;
}
set
{
}
}
}
}

Thanks!

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

56
by: Xah Lee | last post by:
What are OOP's Jargons and Complexities Xah Lee, 20050128 The Rise of Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...)...
10
by: Greener | last post by:
Hi, I need help badly. Can you do client-side programming instead of server-side to capture the Browser type info? If this is the case, what's wrong with the following? <script...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
0
by: Norm Wong | last post by:
If anyone is interested in using db2uext2 with Cygwin gcc compiler on Windows, I've modified the IBM provided sample with the attached file. There are two main modifications. The mkdir command...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
8
by: johnsonholding | last post by:
Here is the code for a pop-up window that works in Firefox and not in IE - I get a java error or something, Here is the code : </script> <SCRIPT language="JavaScript"...
11
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
4
by: grizggg | last post by:
I have searched and not found an answer to this question. I ran upon the following statement in a *.cpp file in a member function: static const char * const pacz_HTMLContentTypeHeader =...
3
by: vainstah | last post by:
Hello Guys and Galls, To start off, I have reached the solution I was looking for, but I would like comments and feedback on the solution I have reached and tips/tricks on making it more elegant....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.