Link to home
Start Free TrialLog in
Avatar of mr-kenny
mr-kennyFlag for Switzerland

asked on

C# partial class Properties

Hi,

I have a question concerning partial classes: I have two Projects Project1 and Project2 in VS2010 .NET4.0.
Both have the namespace ClassLibrary1
In Project1 I have a partial Class1 with a property int i1. In Project2 i Reference the Project1 and define a partial Class1.
Now I want to access the property i1 in the Class1 from Project2, but the compiler says this property doesn't exist.
Why can't I access the property from the other part of the partial Class? (I hope my explanation is clear?).

regards,
ASKER CERTIFIED SOLUTION
Avatar of Snarf0001
Snarf0001
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mr-kenny

ASKER

so I have to use inheritence then. I missunderstood the idea of the partial class.
Thank's for your help.
thanks