[C#.NET][VB.NET] Practice IEqualityComparer regardless of case
PracticeIEqualityComparer, case-insensitive comparison
//Practice< /pre> public class InComparer: IEqualityComparer { C
Programming language is a formal language used to define computer programs. It is a standardized communication technique used to issue instructions to a computer. A computer language allows programmers to accurately define the data that the computer needs to use, and precisely define the actions that should be taken in different situations.
[C#.NET][VB.NET] Practice IEqualityComparer regardless of case
PracticeIEqualityComparer, case-insensitive comparison
//Practice< /pre> public class InComparer: IEqualityComparer { C
Generic allows you to delay writing the specification of the data type of the programming element in the class or method until it is actually used in the program. In other words, generics allow you
I believe that when you are writing programs, you must have a lot of opportunities to convert numeric strings into int or float type values, but the numeric characters may not be very clean, someti
String char a collection of string name = “John Doe”; Double quotes, char is a single quote
string is immutable, once it is initialized, it cannot be changed. Every time you use the existing string
In addition to ultimately inheriting from Object, value types also inherit from ValueType
Value types inherit from ValueType, and ValueType inherits from Object. (All types in c# ultimately i
1. Import CefSharp.WinForms, use NuGet to search for the package name
2. Set up the event solution platform
If there is no x86 platform, just “New->x86” will do. Use the x86 platform to
[C#.NET][Thread] Make good use of SpinWait to handle thread idling to improve performance
When we are processing a thread, if we need to wait synchronously, it’s possible in the past Thread.S
They can be used as follows:
FieldInfo field = fieldof(string.Empty);
MethodInfo method1 = methodof(int.ToString);
MethodInfo method2 = methodof(int.ToString(IFormatProvider)); fieldof can be compiled into IL, as follows:
ldtoken
call FieldInfo.GetFieldFromHandle methodof can be compiled into IL as:
The last article wrote some of the most basic things for commissioning. In this article, let’s talk about commissioning other things.
According to the understanding of the delegation, the delegation can Pass a method as a parameter. Using this feature, we can use delegates to implement plug-in programming.
1. Use C# to modify the image DPI
private void Form1_DragDrop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
this.textBox1.Text = ((string[])e.Data.