Essay classification- C#

Abstract: When binding, if you can specify the Path (Name) of the data source attribute, you can specify the Source and ElementName. However, sometimes the data source to be bound may not have an explicit Path (Name), so you need to specify the binding source attribute by using the RelativeSource attribute of the Binding object. In short, it is to specify the current read the whole passage
posted @ 2022-11-01 16:22 illegal keyword Reading (1047) Comments (0) Recommended (3) edit
Abstract: WPF class inheritance diagram Object class: in The root type DispatcherObject class of all types in Net: Most objects in WPF derive from DispatcherObject, which provides basic construction for handling concurrency and threads. WPF is based on the message system implemented by the scheduler. DependencyObject class: representing a parameter read the whole passage
posted @ 2022-10-31 17:33 illegal keyword Reading (248) Comments (0) Recommended (1) edit
Abstract: Use Lazy<>to elegantly solve the asynchronous requirements in constructors. Since the beginning of netframework 4.0, C # has supported delayed initialization. Through the Lazy keyword, we can declare that an object is reinitialized only when it is used for the first time. If it is not called, it will not be initialized, which saves some unnecessary overhead, Improved efficiency Thread safety By default, this class's read the whole passage
posted @ 2022-06-28 16:42 illegal keyword Reading (259) Comments (0) Recommended (1) edit
Abstract: Expression and ExpressionTree LINQ expressions (Expression) can assign lambda expressions to Func or Action type delegates to process collections in memory NET compiler converts lambda expressions assigned to Func or Action type delegates into executable code at compile time. LINQ introduced a new technology called E read the whole passage
posted @ 2022-06-06 09:39 illegal keyword Reading (91) Comments (0) Recommended (0) edit
Summary: LINQ operatorLINQ filter operatorWhere filter operators in LINQ filter sequences (sets) according to some given criteria. The following table lists all available filter operators in LINQ. The filter operator describes where to return a value from the collection according to the predicate function. OfType returns the value in the collection according to the specified type. However, it depends on whether they can convert to the specified type. read the whole passage
posted @ 2022-06-02 14:31 illegal keyword Reading (80) Comments (0) Recommended (0) edit
Abstract: The Quartz version is required to be higher than 3.2 to install Install Package Quartz Extensions. Hosting Quartz. Extensions. Hosting package contains Quartz Extensions. DependencyInjection, please consult Quartz for details Extensions read the whole passage
posted @ 2022-02-28 17:32 illegal keyword Reading (370) Comments (0) Recommended (0) edit
Abstract: AspNetCore3.1. x runs Windows Service and installs the corresponding expansion pack Nuget install Microsoft Extensions. Hosting. Public class Program {public st read the whole passage
posted @ 2021-05-20 10:05 illegal keyword Reading (154) Comments (0) Recommended (0) edit
Abstract: When using Flurl as an HttpClient to request from the server, the request may fail due to network or other reasons, such as HttpStatusCode NotFound、HttpStatusCode. ServiceUnavailable、HttpStatusCode. RequestTimeout, etc; There are read the whole passage
posted @ 2021-03-14 17:08 illegal keyword Reading (502) Comments (1) Recommended (0) edit
Absrtact: C # obtains the connection status of WIFI. This article is to obtain the connection status of the device when the name of the WIFI network device is known. It can also determine whether the WAN has been connected. At first, the idea was whether there was such a direct access to device information. Through this returned information, I can get the status I want. I found a data that there is a libiw on Linux, The information about the ssid that this package can scan is not what I want read the whole passage
posted @ 2020-12-23 11:09 illegal keyword Reading (1367) Comments (0) Recommended (0) edit
Absrtact: Sometimes, when processing Http requests, we are lazy and don't want to define a model to process them. It is very convenient to use Dynamic to directly operate the requested data. Dynamic keyword and dynamic language runtime (DLR) in C # are New features in Net 4.0. What is "dynamic" programming language can sometimes be divided into static typing language and dynamic typing language. read the whole passage
posted @ 2020-12-02 17:21 illegal keyword Reading (1131) Comments (0) Recommended (0) edit
Summary: First, create a blank solution WPF With Asp Net WebApi II, Create WPF project WpfApp 3 of Net5, create Asp. of Net5 Net WebApi project WebApiProvidor 4. Modify WebApiProvider project and WpfApp project Modify the output type of WebApiProvider project read the whole passage
posted @ 2020-11-24 20:08 illegal keyword Reading (2295) Comments (9) Recommended (2) edit
Summary: To install the Single Page Application (SPA) templates, run the following command: dotnet new -- install Microsoft AspNetCore. SpaTemplates:: * Create Asp Net read the whole passage
posted @ 2020-11-17 20:00 illegal keyword Reading (253) Comments (0) Recommended (0) edit
Abstract: Use the WindowChrome property of Window to preserve the shadow effect of the borderless form, double click of the title bar, drag and drop of the title bar. The title bar close button is different from the minimize, maximize, and restore button styles. First BasedOn="{StaticResource WindowButtonStyle}", then use different background colors after MouseOver. Pay attention to the close button read the whole passage
posted @ 2020-11-13 17:50 illegal keyword Reading (571) Comments (0) Recommended (0) edit
Abstract: The dotnet core and ubuntu arm32 development experience select a development board that supports ubuntu and is compatible with wiringPI Installing Net core On Linux ARM32/64 Installing . NET Core on Linux ARM64 The following int read the whole passage
posted @ 2020-11-13 12:07 illegal keyword Reading (384) Comments (0) Recommended (0) edit
Absrtact: git clone MvvmLight fails. If the network is broken, there is no way to directly modify the source code. Nuget is used to install MvvmLightLibsStd10. GalaSoft is used MvvmLight. The ReplayCommand under the Command namespace will have a bug. The return of CanExecute will not update the UI read the whole passage
posted @ 2020-05-29 16:36 illegal keyword Reading (566) Comments (0) Recommended (0) edit
Absrtact: Purpose Due to some requirements, it is necessary to monitor the files under the concerned folder at all times, including renaming, adding, deleting, modifying, etc. Because the number of folder files is large, it will be a waste of time to rescan the entire file every time The scheme uses FileSystemWatcher to monitor these interesting changes. The example code is using System; using System. IO; na read the whole passage
posted @ 2020-05-28 22:29 illegal keyword Reading (279) Comments (0) Recommended (0) edit
Abstract: Refer to Autofac Extras. CommonServiceLocator implements ServiceCollectionServiceLocator to use Microsoft Extensions. DependencyInjection Using HttpClientFactory Reference read the whole passage
posted @ 2020-04-22 11:57 illegal keyword Reading (626) Comments (0) Recommended (0) edit
Abstract: 1 Use EventToCommand in Mvvmlight, and Mvvmlight Windows. Extension of some aspects of Interactivity.dll view: viewmodel 2 HandyControl implemented with HandyControl Interactivity vi read the whole passage
posted @ 2020-04-18 15:37 illegal keyword Reading (4752) Comments (0) Recommended (0) edit
Abstract: IsAsync in wpf is not ideal in some cases. Directly, the code public sealed class NotifyTaskCompletion<TResult>: INotifyPropertyChanged {public NotifyTaskCompletion (Task<TResult read the whole passage
posted @ 2020-04-18 10:22 illegal keyword Reading (776) Comments (0) Recommended (0) edit