Xellez
Xellez
CC#
Created by Xellez on 12/18/2022 in #help
Dictionary Implementation, but with custom class as key
so what am I supposed to do for it to work with my implementation using struct?
14 replies
CC#
Created by Xellez on 12/18/2022 in #help
Dictionary Implementation, but with custom class as key
this is their reason for it
14 replies
CC#
Created by Xellez on 12/18/2022 in #help
Dictionary Implementation, but with custom class as key
The focus of this exercise is the use of generics, and the understanding of interfaces and interface inheritance by implementing and using your own class(es).
14 replies
CC#
Created by Xellez on 12/18/2022 in #help
Dictionary Implementation, but with custom class as key
well it is for an exercise I am trying to solve
14 replies
CC#
Created by Xellez on 12/18/2022 in #help
Dictionary Implementation, but with custom class as key
hm this is for the System.Collections.Generic Dictionary right? I am using my own dictionary implementation so if it is giving me Cannot apply indexing with [] to an expression of type 'Dict<GeoLocation, string> does it mean I screwed-up in my implementation ?
14 replies
CC#
Created by Xellez on 12/18/2022 in #help
Dictionary Implementation, but with custom class as key
so it would be something like this
var P1 = new GeoLocation (0, 0);
var Dictionary = new Dict<P1, string>();
var P1 = new GeoLocation (0, 0);
var Dictionary = new Dict<P1, string>();
14 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
ok
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
@Ero I have a small question as I am creating a list of the type IObstacles would I be able to access position of any obstacles or do I need to create method that does that?
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
nvm I am stupid
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
I need .NET 7.x no ?
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
not supporting 2019 visual studio anymore
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
sorry I guess didnt know there where newer version of c#
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
?
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
C# 7.3. Please use language version 9.0 or greater
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
is this also wrong ?
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
List<IObstacles> RBox = new List<IObstacles>();
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
ok so if we use my interface to declare it It should be IObstacles RBox = new Redbox(10, 10);
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
ok
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
that link is safe right ?
42 replies
CC#
Created by Xellez on 12/13/2022 in #help
❔ Is this the right way to implement an Interface
yeah it seems I am not using my interface at all
42 replies