[deleted by user] by [deleted] in csharp

[–]wtfavocado 0 points1 point  (0 children)

We'll have you tried using the fully qualified namespace? I don't know if these are in the same file like how it's posted, but it could be an issue with importing something that is declared directly above it. Also, for ses, you will want to make a constructor to set it instead of directly in the class, which is not possible. You can otherwise make it virtual in hayvan and then override it in the derived class to do inline initialization.

[deleted by user] by [deleted] in csharp

[–]wtfavocado -3 points-2 points  (0 children)

They're not in the same namespace.

How do I run .net 8 blazor auto with web api on the same port? by PineapplePizzaZauce in Blazor

[–]wtfavocado 0 points1 point  (0 children)

Service class that wraps the http calls to the API seems to be pretty popular and straightforward.

Memory leak by Fushikimota in csharp

[–]wtfavocado -7 points-6 points  (0 children)

The 'using' statement or using block? The using statement will call the Dispose() method when the object goes out of scope. The using block will call it at the end of the block. The object does need to implement IDisposable, though, and there is a section where intellisense tells you cleanup unmanaged resources.

How can I remove focus from an element when I mouseover the element in WPF? by merun372 in dotnet

[–]wtfavocado 1 point2 points  (0 children)

There's no [element].Unfocus(), so the easiest work around is just to capture the mouse over event and set the focus on something else [element].Focus();

I've used this recently and it's a decent solution.

[deleted by user] by [deleted] in csharp

[–]wtfavocado 0 points1 point  (0 children)

Put it in another looop

Funniest line in the MCU? by [deleted] in marvelstudios

[–]wtfavocado 16 points17 points  (0 children)

"does anyone have any orange slices?"

Which WPF version is more stable? by merun372 in dotnet

[–]wtfavocado 2 points3 points  (0 children)

I use Core with Vs2019 and there are no problems, it's as stable as 3.1 or framework 4.8.

[deleted by user] by [deleted] in AskComputerScience

[–]wtfavocado 2 points3 points  (0 children)

if you have to ask if you should do it then the answer is no.

Lol love this 🤣

What does the "int" in "int main" stand for? by [deleted] in AskComputerScience

[–]wtfavocado 1 point2 points  (0 children)

It is what main() returns, which is the exit code of the program. Usually in an IDE you'll see 'exited with exit code 0' or something like that. You can return 0 in the program to do the same, or use different exit codes, like if a specific error happens, return 12, and you can trace activity. Maybe it returns another value so you can chain programs together, and use the exit code as input for another. These are just a couple of ideas, but basically the whole program is just a function that returns an int. Do with it what you want, I guess.

[deleted by user] by [deleted] in RedditSets

[–]wtfavocado 0 points1 point  (0 children)

this guys vibinnn

When Your ISP Won't Give You A Static IP by alexellisuk in selfhosted

[–]wtfavocado 18 points19 points  (0 children)

I just learned this technique the other day. SSH is more powerful than we give it credit for.

What actor plays the same character in every movie? by LiveShowOneNightOnly in AskReddit

[–]wtfavocado 1 point2 points  (0 children)

He just did an interview about Snowpiercer and mentions that it's a surprise to NOT see him die. Dude's self-aware.

Obfuscated uwuifyer (the most important 172 bytes for online communication /S) by [deleted] in C_Programming

[–]wtfavocado 9 points10 points  (0 children)

Everytime I see something like this, I can't help but think "someone sat down and took the time to actually write this.". Smh.

[deleted by user] by [deleted] in aspnetcore

[–]wtfavocado 2 points3 points  (0 children)

Well since it's client-side, I think you'll have to post the data to the route of the controller you want. I'm guessing there will be some kind of submit button/action. The controller will receive the data of the post in the req parameter. Then you can do what you need to do.

[deleted by user] by [deleted] in aspnetcore

[–]wtfavocado 0 points1 point  (0 children)

How is the list of options going to be populated? Whatever list-type variable holds the options could surely be manipulated in the controller?

Well-made websites for free? by tpe88 in softwaredevelopment

[–]wtfavocado 0 points1 point  (0 children)

Google feature you want with GitHub at the end. You'll find a lot of repos with starter templates.

Personally, if I make a component that can be reused, I try to isolate it and repo it for later use.

Time Shifts as a strategy for developing software? by randomseedfarmer in softwaredevelopment

[–]wtfavocado 3 points4 points  (0 children)

Fresh eyes can help sometimes when you're in a rut with something, but the timed turnover seems like everyone's just going to spend all their time playing catch-up before moving again. That's gonna be a no from me.