I am developing a unit testing framework with c#. I am using the official Microsoft.TestPlatform library and I have already implemented ITestDiscoverer and ITestExecutor .
What I am using to determine that a method is a test is the MyTestAttribute...
I saw a wrong explanation in an explanation video, but it was explained correctly in the video.
This is the code:
public User Put( User user)
{
var editedUser = _users.FirstOrDefault(x => x.Id == user.Id)
editedUser.Firstname = user.Firstname;...
Here's the code snippet pulled from Microsoft Learn (
It seems the line with AuthenticationContext, ClientCredential and SecureClientSecret are depreciated. For example: ClientCredential' is obsolete: 'Use...
I have multiple section in FlowDocument as follows. Since there are multiple blocks inside FlowDocument and FlowDocument is inside FlowDocumentScrollViewer the content can be scrolled. Here, I am trying to detect the block that is currently visible...
We're creating a game for graduate college. I'm making a flight shooting game in unity on VR.
The problem is that reset player (aircraft) position to current player's position in real.
Currently, my player object's structure is...
Player
> XR...
What I am trying:
Adding panel as dynamic and assigning asp:panel id name as dynamic name value.
Eg : id name as panel_1, panel_2, panel_3...
I am using for loop in aspx page.
So I trying to add id name as dynamic but I getting error like
Parse...
I'm running into memory issues because I have a collection that continues to grow. What I need to do is only keep about 15 items of each occurence in a list, so my idea is to find all the occurences where a value is equal to a supplied argument and...
I am using below code to delete multiple columns with range by using Excel Interop library. It is taking much time to delete the entire columns. Is there any other alternate ways to delete the multiple columns very quickly.
Excel.Application _excel...
I'm having a problem with applying velocity to my character controller and using Vector3.normalize to make diagonal movement the same speed as forward movement. When I use Vector3.normilize it normalizes x, y, and z. I need it to only normalize x,...
my App. receives frame from serial port.
I want compare that frame with my preset Frames.
Received Frame has 2 byte CRC-16 at Last.
my Language programming is c#
thank you very much
I have three types that derive from the same base class: BaseEvent.
I display all three types together in a datagrid in my frontend. Need to maintain each items knowledge of what type it is so that I can cast it to the appropriate type when handling...
Please, I am getting an Error: Socker Hang Up error on postman whenever i try to make a request through the port of the docker container.
It's a C#/Asp.net web api project and the api returns the proper json response whenever i make a request using...
I'm trying to achieve the following:
Let's say I have a GET endpoint where I can send MongoDB query-like filters, something similar to:
_id: { $eq: 65ec2f531142aac1738c2203 } }
I want to make this dynamic query with MongoDB where I can receive...
How could I generate steady CPU load in C#, lower than 100% for a certain time? I would also like to be able to change the load amount after a certain period of time. How do you recommend to generate usage spikes for a very short time?
I have multiple section in FlowDocument as follows. Since there are multiple blocks inside FlowDocument and FlowDocument is inside FlowDocumentScrollViewer the content can be scrolled. Here, I am trying to detect the block that is currently visible...
I am using MS Graph API to send reply emails from my UI. A user will select the message they want to reply to and they draft a email and add the contacts they want included (To, Cc, Bcc) and the new body of the reply email. I capture the message id...
In short, I have a custom control in Xamarin for which I defined a BindableProperty , which I would like to bind to the control's xaml via a calculated property in the code behind, but it always displays as null because the calculated property is...
I saw a wrong explanation in an explanation video, but it was explained correctly in the video. The codes are as follows friends.
public User Put( User user)
{ var editedUser=_users.FirstOrDefault(x-> x.Id==user.Id)...
I have multiple section in FlowDocument as follows. Since there are multiple blocks inside FlowDocument and FlowDocument is inside FlowDocumentScrollViewer the content can be scrolled. Here, I am trying to detect the block that is currently visible...
I'm creating a .net web api with stock details that I've scraped from both Yahoo finance and Google finance but I need some help.
The first thing I noticed is that no one is using unique classes or IDs...
1.
Yahoo finance market price value (when...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения