1

I'm confused which type I use to create model in project, Struct or Class? There're about ten struct and some collections. I'm a newbie.

0

3 Answers 3

2

You should always use classes as ViewModel or Model in WPF.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank u, I'm reading.
2

You should never create a mutable struct.

View models should always be classes.

1 Comment

Models is always classes, too?
1

As a newbie, don't use structs. There are subtleties to the way they work that will mess you up.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.