Is there any way to access private memebers of an object
from another object?
Answer Posted / mohit jethva
You need to create a property with private field and make
property as public so you can access private field using
public property in other object.
eg.
private int _ID;
public int ID
{
get{return value;}
set{_ID = value;}
}
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Which is faster array or arraylist in c#?
What is 8 bit signed integer?
What is master page in asp net c#?
Explain About CLS?
What is data hiding in c#?
What is xml c#?
How does one compare strings in c#?
What do you mean by streamreader/streamwriter class in c#?
List the difference between interface and abstract class?
What is string programming language?
What is garbage collection? How to force garbage collector to run?
Can interface inherit class in c#?
What is the difference between iqueryable and ienumerable?
What is xslt in c#?
How do I create a multilanguage?