arion
arion
CC#
Created by Jason_Bjorn on 6/29/2024 in #help
Why `where T: class`
Because they already rejected structnt as a constraint name
8 replies
CC#
Created by Tony Wang on 6/10/2024 in #help
Application looking in wrong runtimes/{arch}/native directory
Have you tried setting an import resolver for the dlls?
cs NativeLibrary.SetDllImportResolver(Assembly.GetExecutingAssembly(), ...);
cs NativeLibrary.SetDllImportResolver(Assembly.GetExecutingAssembly(), ...);
14 replies
CC#
Created by js on 5/1/2024 in #help
way to check if a string contains only alphabet
Regarding what the best way to do so is, that well, it depends. Is your interpretation of "best" speed? memory usage? how many lines of code? Linq is nice on the lines of code but there are memory implications and it might not be the fastest. You can try to write your own implementation to try to beat System.Linq's .All
5 replies
CC#
Created by js on 5/1/2024 in #help
way to check if a string contains only alphabet
If you want it more structured you can extract the predicate
5 replies
CC#
Created by Hiranko on 4/24/2024 in #help
Any WPF Guides?
Essentially, MVVM ensures that your code can easily be repurposed for other things.
12 replies
CC#
Created by Hiranko on 4/24/2024 in #help
Any WPF Guides?
Hope I can bring some insight here. I'd recommend that during your exploration that you not use AI assisted coding tools, in many cases during learning they can hurt your experience To get to mvvm, it's basically a separation of concerns, to prevent spaguettification of code. You don't need your systems so intermingled that you can't see a difference anymore. View in its basic form is the UI (User interface) or the UI layer (some code that gets used by the UI) The model is a bit complicated since it encompasses many things but basically it's something that isn't connected to your UI. Ideally it's something like a DTO. View Model in its basic form connects well, the view and the model. It's the code that makes the model compatible with the UI, most of your app's code should live in these (except of course the XAML) Try looking at other people's projects that use MVVM and had a lot of stars on their GitHub (I'm hoping that many stars means they use MVVM correctly)
12 replies
CC#
Created by funwithmetamil on 4/14/2024 in #help
App not Opening On other Computers (WPF)
most of the time it's a wrong runtime version or a missing dll
46 replies
CC#
Created by funwithmetamil on 4/14/2024 in #help
App not Opening On other Computers (WPF)
if u launch the app and then go into Windows Event viewer, there might be an error in the Applications folder 📁 related to why your app is crashing
46 replies
CC#
Created by funwithmetamil on 4/14/2024 in #help
App not Opening On other Computers (WPF)
uh sure,
46 replies
CC#
Created by funwithmetamil on 4/14/2024 in #help
App not Opening On other Computers (WPF)
Does the PC you tried to run it on have the .net runtime version 8?
46 replies
CC#
Created by funwithmetamil on 4/14/2024 in #help
App not Opening On other Computers (WPF)
Which version of .net are you using? You can check in your .csproj
46 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
i think its /close or smthn
49 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
though i could be wrong, im a whole version of .net behind on native aot, they might have gotten better already
49 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
just remember, native aot (c# native) has some drawbacks, from the top of my head um, reflection is a nono, Json serialization gets harder, and some other things, i forgor
49 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
:okHand:
49 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
just remember, its in your publish folder (mine in the screenshot is in C:\Users\Dawn\RiderProjects\NAOTTest\NAOTTest\bin\Release\net7.0\win-x64\publish)
49 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
publishing is not the same as compiling
49 replies
CC#
Created by Silme94 on 4/13/2024 in #help
✅ Using a C# DLL in C++
did you build it like the article said?
49 replies