Skip to main content

powershell

PowerShell is not C#

Submitted by admin on Tue, 01/03/2017 - 22:09

PowerShell may be based on .NET, but it most certainly is not C#. There are quite a few differences between these two languages that are not immediately apparent and can lead to some weird issues. I'm going to give a few examples in this article.

1. Return Behavior

The return keyword in C# always terminates the execution of the current method. I initially made the assumption that the same applies to PowerShell, but that isn't entirely true.

Tags
Subscribe to powershell