Posts by MGM • 89 points
11 posts
-
1
votes0
answers59
views -
0
votes1
answer542
viewsQ: Upload/Download large files with ASP.NET Core 2.2
I need to upload and downlods files above 2GB using ASP.NET Core 2.2, but I don’t know the best way to do this. For the download, to using the following method: [HttpGet("id")] public IActionResult…
-
3
votes1
answer91
viewsQ: How to deal with business rules?
I am working on a C# WPF + EF6 application and find myself lost when it comes to reusing business rules. I’m using the standard repository + Unit of work, but I believe that copying-pasting complex…
-
0
votes0
answers103
viewsQ: Multithread system file writing in c#
I am developing a system in which I find myself in the following scenario: a program needs to create a file piece by piece. It receives bytes from a server and so the file is created, it should work…
-
0
votes0
answers30
viewsQ: How to ensure password security when extracting a Securestring in C# WPF
I was reading about Securestring and what she can offer. However, I am in a scenario where I have a Passwordbox and I want to extract the password of this component, encode it in hash and then…
-
2
votes0
answers54
viewsQ: WPF and MVVM Standard, doubts
I’m studying C# and I’m having to develop a WPF application with the MVVM standard. One question I have about this pattern is in relation to events, I have read in some places that it is not…
-
4
votes1
answer92
viewsQ: How can Stack expressions handle stack variables?
I’m learning C# and I’m reading about Brazilian expressions. The question is: how does it work and why does it work? public delegate void Test(); public void Foobar(ref Test del) { int var = 10; del…
-
2
votes1
answer683
viewsQ: Buttons with WPF images
I’m new in WPF and I’m wanting to create a button, where its content will only have a background image and nothing else. Will not have border, background color or text, just a clickable image. I…
-
1
votes2
answers342
viewsQ: Doubts about the realloc function
realloc realoca "negatively" the memory? That is, if the original size of a vector is greater than the value passed in the reallocation, the vector will be reduced? For example, if I do this: char…
-
1
votes1
answer208
viewsQ: Problems with dynamic allocation and struct
I intend to create a struct where there will be a vector of structs... The way I thought of doing it was kind of like this: typedef struct{ char *teste_str; int teste_int; }TESTE_A; typedef struct{…
-
2
votes1
answer132
views