What's the syntax for creating a new object within another object?
I'm trying to create the object Application in order to use the ShuffleProbability method as shown below.
- Petowner.Pets.Add(new Cat
- {
- Name = "Rambo",
- IsHungry = new Application ShuffleProbability(), // How to use this?
- });

Ben ThompsonRank #8,839 · 215 reputationPosted Jan 19, 2021, 4:02 PM EST