Tagged Questions
3
votes
4answers
217 views
Is it a good practice to create a ClassCollection of another Class?
Lets says I have a Carclass:
public class Car
{
public string Engine { get; set; }
public string Seat { get; set; }
public string Tires { get; set; }
}
Lets say we're making a system ...
7
votes
1answer
450 views
How to choose between using a Domain Event, or letting the application layer orchestrate everything
I'm setting my first steps into domain driven design, bought the blue book and all, and I find myself seeing three ways to implement a certain solution. For the record: I'm not using CQRS or Event ...
6
votes
2answers
1k views
Storing and maintaining serialized objects in C#
What are the best practices to store and maintain serialized objects in C#? Any strategies or patterns that apply?
What I have come to believe so far is this:
Prefer Json over XML, both for space ...
5
votes
1answer
109 views
Checking members and instantiating in properties
Consider this:
public MyClass
{
private Resource _myResource;
public Resource MyResource
{
get
{
if(_myResource == null)
{
...
2
votes
2answers
218 views
Are there any good tools to help implement or enforce the proper equals and hashcode patterns for c#?
A very common bug on my development team is forgetting to, or incorrectly overriding equals and hashcode.
While the pattern is simple, there's a lot of boilerplate code that goes into doing this ...
4
votes
3answers
375 views
Architectural Patterns for a Game
So I've got a solution that contains a few big projects, which I'm trying to break down into smaller projects with more isolated responsibilities. This is a game I'm tinkering with -- I'm mainly a LOB ...
1
vote
1answer
372 views
.net data access technology
Iam new with .Net technology and i need a help with choosing correct path of creating application. I want to create application that get its data from web-service and small part from local SQLCE ...