TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jason Anderson
NA
7
45.5k
How to get properties from another class?
May 10 2011 12:01 PM
I have a struct (structA) where I want to have a property that holds properties for another class (ClassB).
struct structA
{
public ClassB PropertyA {get; set;}
}
class ClassB
{
int PropertyB1....
int PropertyB2....
int PropertyB3....
}
I want to do this in another class (ClassC)
structA.PropertyA.ClassB = 10
But I always get "
Object reference not set to an instance of an object."
Any ideas?
Thanks.
Jason
Reply
Answers (
1
)
Regex problem
What is Azure?