3,641 questions
0
votes
1
answer
41
views
Re-ordering Datatable
I am struggling with some algorithm to handle re-ordering of a C# data table based on a a column value.
So, datatable, among other columns, has a RANK column. Through GUI, user can change the rank and ...
0
votes
1
answer
44
views
Assets\Pinegenegrator.cs(26,80): error CS1503: Argument 4: cannot convert from 'UnityEngine.Quaternion' to 'UnityEngine.Transform'
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pinegenegrator : MonoBehaviour
{
public GameObject pinePB;
private float cd;
public float ...
1
vote
1
answer
51
views
how to optimize the code to improve performance foreach loop in C#?
Below functionality is taking more time iteration, It's required to optimize code to improve the Performance to fetch data . can you help me how to optimize ?
private List<ApplicationMenuItemDTO>...
0
votes
1
answer
117
views
I'm trying to sum the 5 number that entered by the user but it doesn't calculate. in c#
static void Main(string[] args)
{
int[] numbers = new int[5];
int sum = 0;
int i;
Console.WriteLine("Input 5 elements in the array :");
for (i= 0; i < numbers....
0
votes
1
answer
63
views
Convert xml to json which one variable already having json format value in c#
I have XML like
"<root><name>john</name><info>{\"age\":25,\"city\":\"NYC\"}</info></root>"
When I used JsonConvert....
0
votes
2
answers
277
views
How can i hide a logo from the left menu in antdesign pro layout in blazor
This is the tag
<AntDesign.ProLayout.BasicLayout Logo="@("assets/logo.svg")" MenuData="_menuData">
When i remove the logo parameter like this:
<AntDesign....
0
votes
0
answers
108
views
How to pass a method as a callback function in another method?
I am creating a server for Rage MP, which is a client application for the online game GTA 5. To achieve this, I am using a bootstrapper to create a C# server. My goal is to create custom attributes ...
-1
votes
1
answer
315
views
Access the value of Excel cells and not the formel in the cell
I hope I will have the chance to find an appriate solution for my problem here .I'm trying to import the data from an excel file in my c# program, I don't know why but I can't see the value at that ...
0
votes
2
answers
528
views
Blazor custom validation in child component
I have this component that goes into a form like
<NumberWithNAAndAmberRanges2 @bind-BindNumber="LocVM.ChartDayStartMinute"
NaName="Not Applicable" NaAllowed="true&...
-1
votes
1
answer
84
views
Error not switching Form in Visual Studio
I have created many Forms in Visual Studio using c#. After create them I want to test those Forms one by one. But after I tested the first Form, I want to test the second Form. But it not working, it ...
0
votes
1
answer
3k
views
401 Unauthorized while using Identity authentication and authorization in ASP.NET Core 3.1
I am getting 401 Unauthorized while trying to access endpoints like clients like Insomnia, curl or regular get methods like httpContext.GetAsync(url);, but can access the endpoints through regular ...
0
votes
1
answer
78
views
Hi, I am getting 404 not found in postman while running POST API
For referenece, I have attached the code for Customer Modal, Customer controller (Post request) and postman response,
Customer Controller: (post Req)
[HttpPost]
public async Task<...
0
votes
1
answer
98
views
Using one script to disable 2 different scripts only if the specific enemy dies. Unity2D
I have this script for my enemies health that I use for all my enemies. When the enemy dies I need it to disable the enemies movement. I have multiple different enemy movement scipts because some ...
-3
votes
1
answer
102
views
c# - static method having parameters - multi user environments - method result retains or not
Does static method retain its result when shared across different users ( multi user environment )
static method
private static async Task<IEnumerable<GetEmpResult>> GetEmpResultByEmpId(...
0
votes
0
answers
166
views
C# Create a Mapping Instead of Switch Case
I am reading a csv file exported from another system and creating a record in microsoft dynamics crm using C#. However the status is different between the 2 systems so i have to read the statuses from ...