Le Kevin Blog Blog

0

Microsoft Code Analysis 2019

Features 100+ live diagnostics for API design, performance, security, and best practices for C# and Visual Basic. Quick fixes for applicable diagnostics (using Ctrl+.). Diagnostics appear in the editor, Error List, and scroll bar....

0

What’s new in C# 8.0

C# 8.0 adds the following features and enhancements to the C# language: Readonly members Default interface methods Pattern matching enhancements: Switch expressions Property patterns Tuple patterns Positional patterns Using declarations Static local functions Disposable...

0

.Net Web API 2 returns query string instead of XML or JSON

public HttpResponseMessage Get(…) { string AllResults = "";   ScanResultModel returnRec;   returnRec = this.Get(…);   AllResults = Helpers.GetXMLFromObject(returnRec);   AllResults = AllResults.Replace("StatusMessage", "STATUS_MSG");   retUrl = retUrl + "?returnXML=" + AllResults;   var...