Skip to main content
0 votes
1 answer
73 views

I'm experimenting with the new C# 14 extension syntax in .NET 10, and I hit an error I can't find documentation for: public static class Foo { extension(int bar) { public static int ...
winscripter's user avatar
  • 1,003
2 votes
0 answers
107 views

I don't understand why the following code creates a warning at compile time: Can you explain why this is happening? I don't get it. Min1 is a normal static method with the same signature as Min2. But ...
Andreas's user avatar
  • 2,115
2 votes
1 answer
51 views

I'm in the process of migrating some utility projects our team uses from Arrow 1.2 to 2.x . One of the functions that needs to be updated is an extension function for converting a String into a Date. ...
pbuchheit's user avatar
  • 1,839
1 vote
0 answers
62 views

I am new to developing chrome extensions and I can't create a connection between background and content script files, I have tried so many solutions but nothing worked. I am trapped inside this ...
Aly Mohamed's user avatar
1 vote
1 answer
57 views

I am trying to make the following code work: open System.Runtime.CompilerServices [<Extension>] type ArrayExtension = static member inline Zero = Array.replicate 4 0. [<Extension>...
Andrey's user avatar
  • 6,649
2 votes
1 answer
79 views

I'm creating a LINQ extension using LINQKIT, but I can't figure out why I get this error System.AggregateException: One or more errors occurred (no method 'InGroupsImpl on type 'SLT.Assets.Extensions....
SteinTech's user avatar
  • 4,144
0 votes
3 answers
195 views

I have an extension that returns true or false if value is null (null == false), called HasValueLite(). When I use the method in a LINQ statement, I get: System.AggregateException: 'One or more errors ...
SteinTech's user avatar
  • 4,144
0 votes
1 answer
79 views

There are a lot of samples how to group different service registrations for IServiceCollection and move them to an extension method. I couldn't find examples where some of the registered services have ...
Yavuz's user avatar
  • 662
5 votes
2 answers
520 views

Recently, C# introduced extension members in version 14 (preview). Can extension methods be written for static classes like Path, File or Directory? In the previous proposal (roles and extensions), ...
HamedFathi's user avatar
  • 4,212
1 vote
1 answer
242 views

I'm running Android Studio Preview versions (currently Android Studio Narwhal | 2025.1.1 Canary 3) & noticed that I'm getting a lot of warnings about conflicts between member functions & ...
Computersmith64's user avatar
0 votes
2 answers
120 views

I'm a little bit annoyed of parentheses in situations like this: var items = (await SomeService.GetDataAsEnumerableAsync()).ToList(); So I thought of creating an extension method like: public static ...
David Ritter's user avatar
0 votes
0 answers
77 views

I'm forking an Android project to add support for older Android versions. The problem is that the method requireViewById of View class is only available from sdk 28 and I'm trying to go below that, ...
grabz's user avatar
  • 15
0 votes
1 answer
67 views

While my question below refers to a specific method - tryParse() - I mean it just as an example, and I look at below as a general problem on class extensions. Sometimes it would make sense to call ...
László Frank's user avatar
0 votes
1 answer
179 views

Solution: As mentioned by @Zhi Lv I had to clear the cache. Instead of clearing the cache of all packages I choose to go manually to C:\Users\<username>\.nuget\packages\ and delete the folder ...
tawfiq's user avatar
  • 3
0 votes
1 answer
99 views

So I tried to write an extension view to augment a PolyFunction: object PolyFnExtension { type Base[O] = Function1[Any, Any] { def apply(x: Any): O } extension [O](base: Base[O]) { ...
tribbloid's user avatar
  • 3,832

15 30 50 per page
1
2 3 4 5
241