.net

Are there viruses in programming languages that don't compile to machine code?

Actually, I wonder if there are viruses that are written in some JAVA or .NET and is it even possible to exist? The disadvan ... ne in the shortest possible time The need for Runtime programs. However, Microsoft started to ship new Win s by default .Net

Choose between property, method, extension method, toString for User.FullName

Suppose there is the following class: public class User { public string FirstName {get;set;} public string LastName ... Explain please specify which method is preferable to use, the pros/cons of this or that method for further code maintenance.

How to find out the version.The NET Framework required to run the build?

I have an executable EXE file .NET. How can I find out the required version of the .NET Framework required to run ?

Explain on your fingers the compatibility of the libraries in.Net Core,.Net Framework,.Net Standart

Studying.Net. I want to write a server application (I think that learning is better on a real example than writing primitive ... you understand what I want to understand: How to find out the compatibility of a package with a specific implementation .NET?

Change the name of the dll from the original Microsoft.Win32.TaskScheduler.dll on my.dll makes it inoperable

To work with the Windows Task Scheduler, I use the Task Scheduler library (I install it via Nuget Package Manager: https://ar ... from the original " Microsoft.Win32.TaskScheduler.dll" on, for example, "my.dll") makes it inoperable... What is the problem?

RSA encryption in C#

I want to make a simple RSA encryption algorithm embedded in .Net by means of. How I see it: Creating an RSA object. We ge ... itional information: The parameter was set incorrectly. " Googling the error did not give any results. What am I doing wrong?

What is interning and how to use it

What is interning? What is it used for? When should it be used and what possible pitfalls?

Oracle error ORA-12154

Good day, dear forumchane. There was a question about working with the Oracle Database from Visual Studio 2013 (C#). When tr ... ary to Data Source=WorkTest ... oh, thank you so much to everyone who helped). The issue is resolved, the project has passed)

await + ConfigureAwait()

Colleagues, good afternoon. Please help with ConfigureAwait(). My knowledge at this level is: this is a method that tells th ... the M1 () method. Is it worth using ConfigureAwait(false) in these waits, or is it enough that we used this method in M3 ()?

Problem Event Name: CLR20r3 Problem Signature 04: mscorlib Problem signature 09: System. IO. FileNotFoundException

Project: (WinForms, DevExpress, .NET FW 4.5) client for the service. It was made on Windows Server 2008 R2. The compiled proj ... e able to advise how to find out with the help of debager, where the exception crashes... I will be grateful for any help.

What are the ways to log all application errors in ASP.NET Core?

What are the ways to log all application errors in ASP.NET Core? For example, I would like to save all exceptions with the ca ... s not responding, the Internet fell off, users send the wrong data to a specific method of a specific controller, and so on.

Container collection application in C#

I read Trollsen about generalized collection types, and there the terminology container and collection are used mixed up. I h ... Generic) and unsociable(System.Collection) collections. http://forum.vingrad.ru/forum/topic-307998/view-all.html#st_0_view_0

Is method overloading a polymorphism?

In several articles, I read this: Method overloading supports the property of polymorphism, because this is how the main ... colleagues about this, the majority said that overloading methods (overload) has nothing to do with polymorphism. Is it true?

Is it possible to do without a static constructor?

I understand that the static constructor is used to assign values to static variables, that it is called first when creating an object of the class. But why do I need it if I can assign these values when declaring variables?

Checking for a COM port

How do I check if the COM port is connected or not? For example, the user selected COM 3, but this port was disabled during o ... Console.WriteLine("{0} отключен.", port.PortName); But I am sure that this operation can be implemented more correctly.

Why is there no ConcurrentList?

In .NET has such a structure as a thread-safe ConcurrentDictionary dictionary. But for some reason there is no thread-safe list? Maybe someone knows why? Thank you in advance

Rounding 0.45 to tenths

Why does the >? Math.Round(0.45f, 1, MidpointRounding.AwayFromZero) command return 0.4 , and the command >? Math.Round( ... nding.AwayFromZero) 0.5 ? The commands are executed in the command window of Visual Studio 2008, version .Net Framework 3.5

What is the Embedded Interop Types check mark in VS responsible for?

On Office builds, there is a check mark like this: Embed Interop Types What is it responsible for? With this check mark, it ... assembly locally. I noticed that if you disable it, some operations with office objects require an explicit type conversion.

GPU "load" data

Is there a possibility in .How do I get data about %% GPU load? For example, the following code allows you to get the avera ... t find anything suitable in the list of possible data sources for PerformanceCounter... I may have overlooked something... )

How to make a self-updating Windows service

The Windows service is written in C#. You need the service to find updates, install them, and restart.