Questions tagged [C#] (7211)

0
answer

OxyPlot how to fix the size of the visible part PlotView?

Made these kind of waveforms in OxyPlot. In theory this is a rectangular box all of them must be the same size (the Height and Width properties all the PlotView identical). De facto, it begins to change size when zooming, and even when creating the graph for different initial data, it is different. I understand that ther...
violette_Christians asked April 4th 20 at 14:22
1
answer

I have error System.Net.WebException: 'The underlying connection was closed: An unexpected error occurred on a send.'?

HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("https://api.guesty.com/api/v2/listings"); webRequest.KeepAlive = false; webRequest.ProtocolVersion = HttpVersion.Version11; webRequest.Timeout = 60000; ServicePointManager.Expect100Continue = false; ServicePointManager.SecurityProtocol = SecurityProtocolTyp...
Reinhold asked April 4th 20 at 14:21
3
answers

How to learn C# after C++, and whether it is necessary?

I am a student who is studying C++ for about a year at the University and separately and independently. I know C++ (I really don't know how much I know C++) and the basics of OOP. Of experience in writing programs but not very many. My main goal is to get into game development. Recently I came across the idea to learn C#, t...
myrtice_Mertz asked April 4th 20 at 14:21
2
answers

Proper Assembly of a c#project?

Hello. What are the recommendations and rules for project build and release the app as a complete product that can be sold? Enough of the description standard attribute in the AssemblyInfo file.cs and set the configuration to Release, do I need to sign the Assembly, and that all you need to know about the Assembly of the p...
adrianna.Kuhic90 asked April 4th 20 at 14:18
1
answer

How to work with a large number of tables?

Good day, there was a task to compare multiple tables. In such a way that we could understand where to match products and get their difference. - What is the best to use ? Json, dictionaries, etc. - What logic is best to organize ? speed is also important Auchan Store: 1. Bread: retail=2; wholesale=1 2. Cheese: retail=4;...
horace_Fu asked April 4th 20 at 14:13
0
answer

Why MessageContract does not accept values with prefixes?

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:To>123@ctr</wsa:To> <wsa:From> <wsa:Address>321@ctr</wsa:Address> </wsa:From> <wsa:MessageID>urn:uuid:330ee93a-8a42-4ac...
rhod asked April 4th 20 at 14:12
1
answer

Can't obtain the soap body of the message?

There is a incoming Soap message <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:To>123@ctr</wsa:To> <wsa:From> <wsa:Address>321@ctr</wsa:Address> </wsa:From> <wsa:Messag...
katlyn68 asked April 4th 20 at 14:08
3
answers

How to understand the comparison operators in a specific example?

Hello, tell me how to understand the comparison operators in this example: if (current_distance <= attack_distance) start_attack = true; or if (current_distance > attack_distance) { } else start_attack = true; In fact it is the same, but for example in the first embodiment, we compare the variables and make the t...
rose_Gerhold90 asked April 4th 20 at 14:04
2
answers

How to pass an array of bytes from the application .NET Core using web api?

I'm trying to get the byte array from the API server, using: WebClient().DownloadData() On the application server .NET Core, the method signature with which we are trying to get the array: public ByteArrayContent Get(string str) Tried to put the return value type byte[], but in both cases, the WebClient receives some kind o...
Francesco_Hartman asked April 4th 20 at 14:00
3
answers

How to handle exceptions in xUnit.net?

Please tell me how in the framework of unit testing xUnit.net to handle that exception? In my case, if one of the properties is less than zero, then an exception will be thrown. For this module I wrote a test: If the number is positive, then all is well, the tests are successfully performed if at least one of the members i...
rachel_McDermott asked April 4th 20 at 13:59