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
- Request a Delivery Receipt and Read Receipt using System.Net.Mail
- Request delivery and reading confirmation
Call async from sync method
var task = Task.Run(async () => await MyAsyncMethod());
References
Add Environment Parameter in Publish Profile
- After created the publish profile, you should able to find the profile in Visual Studio Solution Explorer.
- Open the
pubxml
file and add the<environmentVariables>
- It will add the environment parameter into the
Web.Config
file in published files
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 翻譯
C# Model Audit / Monitoring
Auditing Your C# Models with Entity Framework