C# Related - chanandrew96/MyLearning GitHub Wiki

Reverse Engineering Tools

Mail Message

Button like link

You need to make use of CSS to make the link look like button

<a style='border:1px solid #6c757d; 
          border-radius: 5px; 
          padding: 5px; 
          background-color:#6c757d; 
          color:#fff; 
          font-size:14px; 
          font-family:Arial; 
          text-decoration:none' 
   href='#'>Button Text</a>

Request Delivery Receipt & Read Receipt

MailMessage SendMail = new MailMessage();
//for read receipt
SendMail.Headers.Add ("Disposition-Notification-To", "[email protected]"); 
//for delivery receipt
SendMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess

Receipt Reference

Call async from sync method

var task = Task.Run(async () => await MyAsyncMethod());

References

Add Environment Parameter in Publish Profile

  1. After created the publish profile, you should able to find the profile in Visual Studio Solution Explorer.
    image
  2. Open the pubxml file and add the <environmentVariables>
    image
  3. It will add the environment parameter into the Web.Config file in published files
    image

References

Task

Task Reference

Multicast Delegates

Multicast Delegates Reference

Memory Control 記憶體控制

Analyze memory usage without debugging in the Performance Profiler (C#, Visual Basic, C++, F#)
Taming Duplicate Strings
String Interning: Effective Memory Management with dotMemory
在 C# 中使用 Span 和 Memory 编写高性能代码
.NET高性能编程 - C#如何安全、高效地玩转任何种类的内存之Memory(三)

OpenCC 翻譯

GitHub - OpenCC.NET

C# Model Audit / Monitoring

Auditing Your C# Models with Entity Framework

Code Encryption

.NET Reactor