Properties?

J

jodleren

Hi all

I have a main class, which uses a number of components/sub classes.
I have a script class in my main form, which I'd like my component to
use - so I do this is my component

public TGripperInterface GripperScript

or:

TGripperInterface GripperScript2;
public TGripperInterface GripperScript
{
get
{
return GripperScript2;
}
set
{
GripperScript2 = value;
}
}

but I get this error:

Error 1 Inconsistent accessibility: property type
'GripperStend.TGripperInterface' is less accessible than property
'GripperStend.PageManualWin.GripperScript' C:\JOT\.NET
\J501-44_gripper_stend\trunk\GripperStend\PageManual1.cs 34 34
GripperStend

Any ideas? (yep I am a bit new to what ideas would be useful here)

WBR
sonnich
 
J

Jeff Gaines

but I get this error:

Error 1 Inconsistent accessibility: property type
'GripperStend.TGripperInterface' is less accessible than property
'GripperStend.PageManualWin.GripperScript' C:\JOT\.NET
\J501-44_gripper_stend\trunk\GripperStend\PageManual1.cs 34 34
GripperStend

Any ideas? (yep I am a bit new to what ideas would be useful here)

It actually means what it says :)

GripperStend.TGripperInterface and
GripperStend.PageManualWin.GripperScript must either both be public or
both internal, I suspect one is public and the other internal.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top