.net

Why do I need the default(T) statement?

When trying to return from the return new Size(); method, the error Do not use default value type constructor is thrown and s ... with return default(Size);. As if it is not a problem to use default(T), I just want to understand what the difference is?

Visual Studio doesn't see it.NET 4

I can't select later versions .NET Framework when creating a new project/editing properties of existing ones, even though they are installed. I use Visual Studio Community 2015 (14.0.25123.00 Update 2)

What is throw new NotImplementedException for?()

I can't fully understand why throw new NotImplementedException() constructs are used, and how throw, for example in try-catch, differs from throw new.

Custom Expander WPF Style

Tell me how to create an expander of approximately this style: Or share good articles that describe the creation of such things, because Google does not give out anything good...(

Free library for working with*. DOCX

Recommend a free and well-documented library for working with*. DOCX. I know that there is OpenXML, but what is there in nature that is convenient besides it? For example, there is a convenient EPPlus for Excel.

.NET Native compilation

How to compile a project in .NET Native? The desired item is not present, how to enable it?

How to make a round Image?

How to make a round Image, so that the image that you put in it cuts off all the edges that are behind the circle? If the ima ... ,50,50,50"> <Image Width="100" Height="100" Source="image.jpg"></Image> </Border>

C# crashes error when working with Interop

On the target machine there is no Access of the necessary version (it costs 2010) and I put Access 2016 Runtime there. When ... s 2016 Runtime is not enough to create the object? Can you tell me what to do with this? Do not offer to work through Oledb.

The VS 2013 program has been discontinued

The problem appears when working with WinForms (c#), when adding any element that has a scope (panel, PictureBox, etc.) ... ied to reinstall the environment, run it in safe mode mode without extensions, updated to the latest version - does not help.

Quick start of the program via CMD

Tell me what you need to do so that the program can be run by name through the console? For example, if you write the word Skype in CMD, then Skype starts.

What is the difference between NetFramework and NETCore

When trying to connect the library to the uwp application, I received this warning: "The project is intended for ".NETCore", ... e difference, why are there two of them and is it possible to connect between them (connect one to the other and vice versa)?

What is marshaling?

How would you explain "on your fingers", or with a code example what it is? Here is serialization-this is clear, it is copyin ... that in this case, serialization is inherently marshaling, since it implements "pass-by-value semantics". What do you think?

What is the point of TaskCompletionSource and when is it best to use it?

I didn't understand the meaning of the TaskCompletionSource<T> class a bit. Some sources say that it is better to retur ... m the method instead of the usual Task.Run(). Does it make any sense? What so, what so I can call await on the calling side.

Dictionary C# (Russian - English translator)

I'm making an application that should provide a translation of English words into Russian. It should also be possible to writ ... //добавлении записи каждый раз вписывать новый индекс eng.Add(index, wordPl); pl.Add(index, wordEng); }

What is BindingSource?

I can't figure out what BindingSource is. Through the adapters, we can manipulate the data. Then why do we need BindingSource ?

Markdown to HTML and back to C# or JS converter

Need a Markdown converter to HTML and back using C# or JS, are there ready-made solutions? I want to do this: The user crea ... In the process, it can switch from one way of creating markup to another. To do this, I need a converter in both directions.

Interface inheritance Hierarchy

I don't understand a little, for example, there is public interface IEnumerable<out T> : IEnumerable public interface ... ound with what is so and what is so a class that implements a derived interface must implement the methods of all interfaces.

Methods for comparing reference classes в.Net

Previously, I thought that you can and should redefine Equals for your classes. But I came across other information that rede ... ountries in my world with the same name. It just so happens that we created two instances, but they are identical in nature..

Why do we implement IEquatable if Equals() is in Object?

Analyzing the topic of generalizations (according to Schield 4.0), it was necessary to write a generalized method that will r ... { //some code for compare return false; } } Please answer all your questions consistently. Thank you

Using ConfigureAwait(false)

I'm looking at the sample code. I was surprised that first ConfigureAwait(false) is called on httpClient.GetStringAsync, and ... ). ConfigureAwait(false); //будь дальше какой-то код, в контексте какого потока он выполнялся б? }; }