SirCarter
SirCarter
CC#
Created by SirCarter on 11/29/2023 in #help
VSCode debugging broke after .net8 upgrade (in wsl)
Basically the title, I upgraded to dotnet 8 in wsl and now the vscode debugging can no longer open local files, anyone else hit this or know how to fix it? Anytime I hit a break point it brings up a comment page saying it can't find the file locally or pull it from git... Even though the file is there I have the devkit extension pointed at the proper dotnet so I don't think that's it.
1 replies
CC#
Created by SirCarter on 5/31/2023 in #help
❔ Covariant Interface Return
Is there some reason why this doesn't work? I understand we can get this behavior with virtual methods and inheritance, but it feels like this should work with interfaces.
interface IFooReturner { Foo GetFoo(); }
class Foo {}
class FooBar : Foo {}
class FooBarGetter : IFooReturner { FooBar GetFoo(); }
interface IFooReturner { Foo GetFoo(); }
class Foo {}
class FooBar : Foo {}
class FooBarGetter : IFooReturner { FooBar GetFoo(); }
If FooBar is a Foo, this implementation should be valid no?
13 replies
CC#
Created by SirCarter on 4/26/2023 in #help
❔ User-defined implicit type conversion + type pattern match
Hello, if I have some type Either<T1, T2> that has a left and right variant, is there a way to get C# to use an implicit converter so that I can write: foobar is T1 value?
28 replies