Category:C#

  • C ා log with NLog

    Time:2020-1-18

    1、 Install using nuget   2、 Configure nodes Default nlog.config modification     3、 Program call ILogger logger = NLog.LogManager.GetCurrentClassLogger(); private void Index_Load(object sender, EventArgs e) { Logger.info (“log details”); Logger.total (“different log levels”); } Log output  

  • (76) C × WinForm custom control – form validation component

    Time:2020-1-18

    Official website http://www.hzhcontrols.com premise It’s been 7 or 8 years since I started, I always want to make a set of beautiful custom controls, so I have this series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net/winform/custom/control.git If you think it’s OK, please click star to support it Welcome to discuss: Penguins 568015492 Here we are. Order […]

  • Unity to drag 3D objects with mouse

    Time:2020-1-18

    The example of this article shares the specific code of unity to drag 3D objects with mouse for your reference. The specific content is as follows Just hang the script on the object to be dragged using System.Collections; using System.Collections.Generic; using UnityEngine; public class ModelDrages : MonoBehaviour { //A camera that emits radiation private Camera […]

  • Use mailkit to send an email with embedded pictures that do not appear as attachments

    Time:2020-1-17

    Use mailkit to send an email with embedded pictures that do not appear as attachments Reference article: mailkit — send mail Be careful Whether to display embedded pictures as attachments in the mail client is different according to different mails. Outlook and QQ are not displayed as attachments after testing temporarily, and Sina mailbox will […]

  • (77) C × WinForm custom control sampling control

    Time:2020-1-17

    Official website http://www.hzhcontrols.com premise It’s been 7 or 8 years since I started, I always want to make a set of beautiful custom controls, so I have this series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net/winform/custom/control.git If you think it’s OK, please click star to support it Welcome to discuss: Penguins 568015492 Here we are. Order […]

  • An article thoroughly understands the entrustment and events in C ා

    Time:2020-1-17

    1、 What is a commission? It’s very abstract. It’s really hard to understand. Interviewers like to investigate this one best, and they prefer to ask, “what are the similarities and differences between entrustment and event?”. If you don’t understand some knowledge points, it’s easy to get around them. To study anything, we can start from […]

  • C ා define geometry with abstract class

    Time:2020-1-16

    using System;/*using System.Data;*/namespace tx{    abstract class tx    {        public double chang;        public double kuan;        public double r;        public double pai;        public tx(double chang, double kuan)        {            this.chang = chang;            this.kuan = kuan;           /* this.r = r;            this.pai = pai*/;        }        public abstract void mj();    }    class Cfx:tx    {        public Cfx(double chang, double kuan) : base(chang,kuan) […]

  • (78) C × WinForm custom control – reflection component

    Time:2020-1-16

    Official website http://www.hzhcontrols.com premise It’s been 7 or 8 years since I started, I always want to make a set of beautiful custom controls, so I have this series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net/winform/custom/control.git If you think it’s OK, please click star to support it Welcome to discuss: Penguins 568015492 Here we are. Order […]

  • Unity3d select local picture and load

    Time:2020-1-16

    The example of this article shares the specific code of unity3d to select local pictures and load them for your reference. The specific content is as follows ① Find system.windows.forms.dll: find it in the installation directory of unity, such as E:\ProgramFiles(x86)\Unity\Editor\Data\Mono\lib\mono\2.0 ② Set. Net 2.0 set: untiy defaults to. Net 2.0 subset. Modify in Edit […]

  • Why implement IDisposable interface?

    Time:2020-1-15

    Background Recently, I found a problem in the intensive reading of CLR via C Chen and effective c Chen. Generally speaking, we achieveIDisposableInterface to release managed and unmanaged resources. However, there is a similar function in the definition of C ා type, which isFinalization device。 At the beginning, I studied C + +. Later, when […]

  • Analysis of the problems in anonymous class processing caused by. Net reactor confusion

    Time:2020-1-15

    . net reactor is a good obfuscation tool, which is much easier to use than the one brought by vs, and has been accompanying our growth. Although there is no perfect obfuscation tool, it is still good, at least it can protect the DLL to a certain extent. Recently, however, customers have reported that when […]

  • C ා realize the countdown closing prompt box function

    Time:2020-1-15

    In the first two days, if I need to make a prompt box to realize a function that can be closed automatically, I searched a prompt box that can be closed automatically from the Internet. However, because the scene I need is uncertain about the timing time, I didn’t use this window, but I think […]