C#

C

C#

We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.

Join

In LINQ to SQL, does Select after OrderBy preserve the ordering?

And what if I want to call ThenBy after the Select? Can I just cast to IOrderedQueryable? Or is there a better method?

C#DevKit - Blazor Components not found (Intellisense)

Any idea why my blazor components are not found? i have this project structure ``` Project - Pages...

Editing pdf files via C#

So, the issue is the following: I have a pdf file that I want to be able to edit through a WPF application. I want to be able to access it's fields and edit the content's in them (which are either text or checkboxes). I attached the pdf with this post. I looked at iText before, but I wasn't sure, so I wanted to ask, how could I get started with this project? Which free library would suffice to this task?

Reatime update

Hello, I am using firestore, to store some values And I have a service, the get the value updated every second ```...

✅ Looking for a developer

Hello, guys. Currently, I am looking for a person who has rich experience in C# and Avalonia UI for mobile app development. The person must have a android device. Also, he should be located in India or Pakistan. Please send me a DM if you are interested.

why do we declare overloaded operators as `static` methods?

i have been looking for a simple answer that i can understand because i am beginner.

Right-Hand Model on Left-Hand Engine with Right-Hand physics engine

Heya- this is more of a math problem than coding specific but it's related to my implementation and i'm kind of stumped. So I'm working on a tool that's supposed to work with the XNA framework specifically, limitation wise I can't edit the culling direction. To create a map, I need to embed 3 things into a file, a VertexBuffer & an IndexBuffer, which are rendered by DirectX 9; and a CollisionMesh which is a triangle mesh (so vertexes and indices) which are processed by the physics engine. (jigLibX) Thus far I've been using glTf to create the buffers because the data is stored in a way that makes it far easier to convert to a VertexBuffer with the caveat that glTfs are right-handed, requiring me to invert the Z axis to have it render properly on direct X's left handed system. Now the problem arises in the fact that to create the triangle mesh, I have to flip it back around so that it matches XNA's right handed coordinate system or else my collisions become internal (Ex: you can enter a cube but you can't leave it)...
No description

✅ Why my SRP don't work?

i follow this tutor https://catlikecoding.com/unity/tutorials/custom-srp/custom-render-pipeline/#2.1 but I don't understand why my objects don't draw textures and materials...

.net core 8 Blazor IdentityCore with Dapper

Would anyone that is familiar with IdentityCore in .net 8 Blazor Server app be willing to help me out a bit. I've tried everything an o cannot get it to work!

✅ Colab

My name is Moses, and I’m based in Canada. I’m currently working on an exciting web development project and am looking for a passionate developer who also resides in Canada to collaborate with. Qualifications: Proficiency in HTML, CSS, and JavaScript...

Does this make sense? |

So I wanted to add a delete button which will delete the card div from my MVC view as per attached screenshot. Gemini suggested that a dedicated method shall be added to the controller class (to just delete the card view). It also suggested that I would add the button part in the view like this ``` <div class="deleteListingBtn"> <a href="@listingMd.ListingName, @listingMd.CategoryId" class="btn btn-danger">Delete</a>...
No description

Form TopMost switching

So I'm making a sort of custom desktop to bring some mobile like features (like app folders and widgets) to windows, and I have each widget as a Form. I need the widgets to be always on top of the desktop, but never on top of any other windows. I don't know if this is just a mental problem, and it's in fact really easy or it's just difficult to implement in general.

What is the correct ternary operation here?

I cannot "assign" values in ternary operations?
No description

sqlite table question

I want this kind of sqlite table look this is waht I want ``` 8:30 9:20 class 1 English Abdullah urdu Ahmed...
No description

Strange issue with Visual Studio and Codeium

I've recently started using Codeium in Visual Studio, but a strange bug is occurring. While Codeium is installed in VS, every time I save a file, a new .tmp file is created of that file. These are never deleted automatically, I have to do so manually. I can uninstall Codeium, and the issue goes away. When I then reinstall Codeium, it starts happening again, so I'm sure it's part of causing the issue. I wanna hear any possible solutions for solving/circumventing this issue. Even simple hacky solutions like just having VS not include these files in the solution would be acceptable (I've not found a way to exclude files based on extension). I just need the files to not be in the solution itself, since they make it hard to manage, and they show up in project-wide searches. Attempted solutions that have not worked: excluding folders in Windows Defender....

✅ New to c# using Visual studio(WindowsFormsApp)

Hi everyone I've been trying to code something, if u put a sentence in a text box and u click a button that it will automatically put all vowels in capital letters in another text box and then all Consonants in capital letters in another text box. Can anyone help me with this code? Tell me what I did wrong, give me a code I can use or any help would be appreciated!
No description

Where do i go from here?

I've watched Bro code's 4 hour C# course, I understand every concept within C# that hes gone through I understand the syntax, but I'm stuck on what I do next, I wanna develop and enhance my skills but I'm not sure what projects I could do that takes into account every single subject or the most important ones. Any help?...

(SOLVED) dotnet publish complains about missing Emscripten

Running dotnet publish -r browser-wasm for my WASM app causes a build error saying that Emscripten doesn't exist on my machine, however the wasm-tools workload is installed using both dotnet workload and Visual Studio Installer.

Build single executable

How do I build my executable without having all of those other files/folders? Just a single .exe nothing else
No description