Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
2 votes
1 answer
49 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
61 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,639
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
192 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
71 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
0 votes
0 answers
45 views

I'm still newish with C# and I wanted to make sure that my understanding of extension method precedence was correct, so I whipped up some quick tests in LinqPad. The results all make sense to me ...
dgo's user avatar
  • 3,987
5 votes
2 answers
480 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
234 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
69 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
65 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
170 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
96 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,822
0 votes
1 answer
93 views

I am writing a generic extension method e.g. AddCors() in my .net aspire project ServiceDefaults to avoid re-writing for each service. However, properties may differ from service to service. Below is ...
Assad Nazar's user avatar
  • 1,474

15 30 50 per page
1
2 3 4 5
241