Aaron
Aaron
CC#
Created by cypherpotato on 6/4/2024 in #help
can I specify an Type wildcard for GetMethod?
but no, you essentially have to use GetMethods and then replicate a piece of the compiler's overload resolution logic
7 replies
CC#
Created by cypherpotato on 6/4/2024 in #help
can I specify an Type wildcard for GetMethod?
therefore the string overload is better
7 replies
CC#
Created by cypherpotato on 6/4/2024 in #help
can I specify an Type wildcard for GetMethod?
string is more specific than object, because string inherits from object
7 replies
CC#
Created by 2spooky2play on 4/22/2024 in #help
✅ Cannot see source code of the standard library
in any case, you can just use https://source.dot.net instead, or the API browser has links to the source on github now
6 replies
CC#
Created by 2spooky2play on 4/22/2024 in #help
✅ Cannot see source code of the standard library
because the reference assemblies are empty
6 replies
CC#
Created by 2spooky2play on 4/22/2024 in #help
✅ Cannot see source code of the standard library
its using a decompiler, which doesnt help with the standard library
6 replies
CC#
Created by 2spooky2play on 4/22/2024 in #help
✅ Cannot see source code of the standard library
seems like sourcelink just isnt supported or something?
6 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
besides, yknow, the list of changes required https://learn.microsoft.com/en-us/dotnet/core/compatibility/8.0
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
that is also fine
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
if you want to create the collection, use [] instead of {}
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
the syntax means something different in a difference place
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
thats where the difference exists
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
thats not in an object initializer though
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
the list is null, it tries to do List.Add, and throws
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
for example
85 replies
CC#
Created by ABp16 on 4/20/2024 in #help
Explanation for array initialization peculiarities
Thing = {} in an object initializer is the syntax for adding things, not creating a collection
85 replies