KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm currently in a scenario in which I have to make use of partial classes. In this partial class I have a few methods that need to address fields in the other class. for example Edit: I'm sorry: the first class is already declared partial ! public partial class myClass { private string _myString; public string myString { get { return _myString; } set { _myString = value; } } } and public partial class myClass { public void doSomething() { myString = "newString"; } } The compiler says myString doesn't exist in the partial class! How can I overcome this problem?
Tags (comma-separated)
Save Edits
Cancel