eysidi
Explore posts from serversDependency Inversion
Hello all, I had asked this before and was answered I need to implement dependency inversion
I have
Shape
abstract class and and interface which is responsible for drawing the shape.
The problem is: each shape uses position
to calculate coordinates, for circle it would be single Vector2
for square, rectangle etc it would be 2 and for triangle it would be 3.
So I need an interface, right
Now my problem is, how do I implement this in my Shape
class40 replies
❔ Serializing related object EF
Hello all,
I have 2 models
And I would like to include
Coordinates
of City
in my response however I get error JsonException: A possible object cycle was detected. This can either be due to a cycle or if the object depth is larger than the maximum allowed depth of 64
My query is
I have googled it and found different approaches but from the examples I saw, this should be working.
Why does this happen?47 replies