.net

How string interning works

Colleagues! I would like to ask you some questions that I have had while studying the language in more detail .NET and the ... ferent results in the end? I understand that in this case we are comparing objects, not content. But why didn't they unite?

Enabling CodeLens in Visual Studio 2017 Community?

There is just an incredibly convenient thing in Visual Studio - CodeLens, which is unrealistically easy to use. It was enable ... talling SSDT. Maybe this is possible in 2017 by some makar? Or is there an addon similar in functionality to this one VS?

The movement of a model airplane around the globe

It is necessary to drive a three-dimensional model of an airplane in a circle on a 3D model of the Earth. The track is fake, ... ck according to the coordinates? And how to rotate it? Examples in C# WinForms, where you could peek, especially not found.

How to upload a file to the HTTPS exchanger via the C application#

Tell me if it is possible to create a php or html request via winforms C# in such a way as if you opened a browser, went to a ... args = Environment.GetCommandLineArgs(); string filePath = args[1]; // Полный путь к файлу label2.Text = filePath; }

What is the difference between Int32 and UInt32?

What is the difference between Int32 and UInt32? The question is, what was UInt32 created for? When should I use UInt32 instead of Int32?

Recoding strings into a readable form

I have data in an unknown encoding. Presumably (almost sure) this is windows-1251 or 1252. The methods of transcoding the Enc ... in the console: ia?niiae, and so if you write it to a file: ïåðñîíàë (this is without transcoding). Tell me what else to try?

As in.Net Core find out the current state of any process?

There is a list of processes, you need to go through this list and get its state for each process, i.e. runned, sleep, zombie ... тся(только в Linux 2.6.33 по 3.13) P Припаркован(только в Linux 3.9 по 3.13) How can I get something like this in Windows?

Enter coordinates and get the DataGridView cell value in C#

There is a DataGridView table with data: for example, 6 columns and 4 rows. I want to make it so that you can manually enter ... do this regardless of whether a cell in the DataGridView is selected with the mouse. What will it look like in the code?

.NET Native compilation error. ChatCapabilitiesManager.GetCachedCapabilities

When building a project in Release, two errors occur in two projects. As far as I understand, I need to somehow configure eve ... .. Xxx.App C:\Users\UserName\.nuget\packages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets 788

Determining availability.NET Framework and Microsoft Visual C++

What are the ways to detect installed .NET Framework and Microsoft Visual C++ packages in the OS? And does it make sense to c ... sence of the latter? Or will the application throw an error if the required package is missing before the check is performed?

When is a manual call to GC. Collect () justified?

I often find GC.Collect() calls in the code, for example, when working with graphs via GDI+. The smart books say that you ne ... rself. Actually, the question is, are there any justified cases when it should be called, or is this a sign of bad behavior?

C#. Upload a single stream/CPU core at full capacity

You need to write code that will load one thread of the processor at 100%. The code must be executed in a finite time, depend ... performs this task using only a small percentage of the core resources. What task can load a single core/CPU thread at 100%?

What is the difference.Net Standard from.Net Core?

Not much I do not understand the fundamental difference between .Net Standard and .Net Core. Do I understand correctly that .Net Standard is the same as .Net Core, but without cross-platform?

What is a build? в.NET?

What is an assembly in .net? Here, for example, I understand .exe or .dll files are assemblies. You can only connect namespac ... till connect the System.Text.RegularExpressions namespace. Or did Richter mean that that assembly contains all the types FCL?

Transliteration to VB.NET

Hello . I need to check the file name for the presence of Cyrillic characters , if such characters are there , then replace them with Latin ones. The question is - is there anything similar in NET libraries, or do it manually ?

Download an image from the vk dialog via VkNet

You need to download the image from the Vkontakte dialog. The dialogue is between the user and the community, we are the comm ... nd out that many Photo fields are defined as null,in particular, and PhotoSrc, which I request How can I solve this problem?

Un/boxing in C#; from object to int

Could you suggest why an explicit downcast of a numeric object (without a prior upcast) is only available to int, applying to ... ut a preliminary upcast, downcast will not work. Update. As corrected - we are talking about boxing/unboxing, not downcast.

The configuration system failed initialization

Good time of day! I am writing a program using EF6 + MySQL. After launch, when executing the program, it issues such an exce ... ; </provider></providers> </entityFramework> </configuration> I can't understand, CHADNT?

Creating a barcode and printing it C#

I get data from the database that contains unique fields. I need to create a barcode for the selected item by a unique field ... d offer to save it as an image or print it? What NuGet packages are there for this purpose, or can you do without using them?

Get The Attributes Of The C Directory#

In C#, there is such a construction: File.GetAttributes(path); Such a construction helps to find out what attributes the f ... ut I don't see such a construction as with files. How is this problem solved in C# ?e how do I get the directory attributes?