Microsoft is applying lessons from Rust to C# in a planned redesign of the unsafe code model, continuing a years-long company focus on reducing memory-safety risks historically associated with C and C++
Rockford Lhotka previews his Visual Studio Live! San Diego session, "MCP Magic," and explains why the Model Context Protocol is becoming a key building block for AI agents. In this Q&A, he discusses how C# developers can build MCP servers, connect them to agents, and design tool layers that are useful, scalable, and production-ready.
Dr. James McCaffrey presents a complete end-to-end demonstration of quadratic regression, implemented from scratch, with pseudo-inverse training, using the C# language. Compared to standard linear regression, quadratic regression is better able to handle data with a non-linear structure and interactions between predictor variables. Compared to other types of training, pseudo-inverse does not require any parameters that must be determined by trial and error.
- By James McCaffrey
- 05/01/2026
Dr. James McCaffrey presents a complete end-to-end example of random forest regression to predict a single numeric value, implemented using C#. A random forest is a collection of basic decision tree regressors that have been trained on different subsets of the source training data. The technique reduces model overfitting to give more accurate predictions on new, previously unseen data.
- By James McCaffrey
- 03/18/2026
Microsoft's .NET 11 Preview 1 introduces runtime and SDK enhancements while facing community scrutiny over C# syntax complexity and a strategic shift toward AI-driven development.
Dr. James McCaffrey presents a complete end-to-end demonstration of quadratic regression, implemented from scratch, with SGD training, using C#. Compared to standard linear regression, quadratic regression is better able to handle data with a non-linear structure, and data with interactions between predictor variables.
- By James McCaffrey
- 01/21/2026
C# was named TIOBE’s Programming Language of the Year, while the index also pointed to a potential rise for TypeScript. Here’s how the latest rankings compare across TIOBE, RedMonk, and PYPL.
Dr. James McCaffrey presents a complete end-to-end demonstration of linear regression using pseudo-inverse training. Compared to other training techniques, such as stochastic gradient descent, pseudo-inverse training does not require any parameters and so it is especially simple to use.
- By James McCaffrey
- 12/15/2025
Dr. James McCaffrey presents a complete end-to-end demonstration of decision tree regression from scratch using the C# language. The goal of decision tree regression is to predict a single numeric value. The demo implementation uses pointers (references) for efficiency but does not use any recursion for better maintainability and customization.
- By James McCaffrey
- 11/20/2025
Microsoft's C# 14 and F# 10 updates ship with .NET 10, adding new language features, tooling improvements and refinement-focused enhancements across both ecosystems. Extension member functionality highlights C# 14, while F# 10 gets scoped warning suppression in a release emphasizing refinement and consistency.
Microsoft introduced two experimental GitHub Copilot Custom Agents--C# Expert and WinForms Expert--built to enhance .NET development workflows with specialized AI guidance, improved code quality, and Visual Studio integration.
Dr. James McCaffrey presents a complete end-to-end demonstration of Tsetlin Machine binary classification using the C# language. Tsetlin Machine models have characteristics of propositional logic, rule-based systems, and finite state automata. Tsetlin Machine systems require predictor values to be binary encoded and therefore the systems are very flexible and computationally efficient in terms of each operation, but computationally expensive in terms of number of operations.
- By James McCaffrey
- 10/15/2025
Developer educator and .NET MVP Jeremy Clark talks concurrent programming ahead of an intermediate-level two-day training session next month.
Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of linear regression with two-way interactions between predictor variables. Compared to standard linear regression, which predicts a single numeric value based only on a linear combination of predictor values, linear regression with interactions can handle more complex data while retaining a high level of model interpretability.
- By James McCaffrey
- 05/02/2025
The Model Context Protocol (MCP) for agentic AI has gained much traction since being introduced by Anthropic last November, and now it has a C# SDK.
Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of neural network quantile regression. The goal of a quantile regression problem is to predict a single numeric value with an assurance such as, "The predicted y value is 0.6789 and there's roughly a 90% chance the prediction will be greater than or equal to the true y value."
- By James McCaffrey
- 03/17/2025
Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demo of Poisson regression, where the goal is to predict a count of things arriving, such as the number of telephone calls received in a 10-minute interval at a call center. When your source data is close to mathematically Poisson distributed, Poisson regression is simple and effective.
- By James McCaffrey
- 03/03/2025
Microsoft's dev team has been busy updating the C# Dev Kit, a Visual Studio Code extension that enhances the C# development experience by providing tools for managing, debugging, and editing C# projects.
Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.
- By James McCaffrey
- 02/20/2025
At the upcoming Visual Studio Live! conference in Las Vegas, Marcel de Vries, Global MD & CTO at Xebia, will present a session on how developers can leverage Semantic Kernel to build AI-enhanced applications with C#.