I was writing client library for one online service and faced situation where I had to remove charset definition from Content-Type header. It was like content type is application/json or response is 415 “Unsupported media type”. I was using HttpClient class to communicate with service and without additional efforts charset doesn’t go away. Here is how I got charset definition away from Content-Type header.
如果你使用过 WPF/UWP 等 XAML UI 框架，那么应该了解到附加属性的概念。那么没有依赖属性支持的时候如何做附加属性的功能呢？你可能会想到弱引用。但这需要做一个弱引用字典，要写的代码还是非常麻烦的。本文介绍 .NET 的 ConditionalWeakTable 类型，适用于 .NET Framework 4.0 以上和全部 .NET Core 的版...
Today, we are releasing the May 2019 Cumulative Update, Security and Quality Rollup, and Security Only Update.
Today, we’re announcing that the next release after .NET Core 3.0 will be .NET 5. This will be the next big release in the .NET family. There will be just one .NET going forward, and you will be able to use it to target Windows, Linux, macOS, iOS, Android, tvOS, watchOS and WebAssembly and more. We will introduce new .NET APIs, runtime capabilities and language features as part of .NET 5.
Senparc.Weixin SDK 是目前使用率最高的微信 .NET SDK，也是国内最受欢迎的 .NET 开源项目之一。 使用 Senparc.Weixin，您可以方便快速地开发微信全平台的应用（包括微信公众号、小程序、小游戏、企业号、开放平台、微信支付、JS-SDK、微信硬件/蓝牙，等等）。 目前 Senparc.Weixin 已经支持几乎所有微信平台模块和接口，并同时兼容 .NET Core、.NET Standard 2.0+、.NET 4.5+。
ASCII Art in .NET Code. Who doesn’t like a nice bit of ‘ASCII Art’? I know I certainly do! To see what Matt’s CLR was all about you can watch the recording of my talk ‘From ‘dotnet run’ to ‘Hello World!’’
Today at Spark + AI summit we are excited to announce .NET for Apache Spark. Spark is a popular open source distributed processing engine for analytics over large data sets. Spark can be used for processing batches of data, real-time streams, machine learning, and ad-hoc query.
Multi-targetting .Net Framework and .Net Core in a single project. A 15-second guide and 15-minute walk through. You have a .Net Core project, whether a netstandard library, or a netcore app, and you’d like it to be available for consumption by a net40 or net45 application?
I was writing document and metadata exporter that reads data from SharePoint and writes it to multiple files. I needed to boost up performance of my exporter and I went with multiple threads pumping out the data from SharePoint. One problem I faced – writing metadata to CSV-files from multiple threads in parallel. This blog post shows how to do it using concurrent queue.
.NET Framework 4.8 发布了。新版包含在Windows 10 May 2019更新中，.NET Framework 4.8也可在Windows 7+和Windows Server 2008 R2 +上使用。.NET Framework 4.8包含更新的工具集以及几个方面的改进：[运行时] JIT和NGEN改进；[BCL] 更新了ZLib；[BCL] 降低FIPS对密码学的影响；[WinForms] 辅助功能增强功能；[WCF] 服务行为增强功能；[WPF] 高DPI增强，UIAutomation改进。