Small help with immutable types...
// private readonly int _age;
// public int Age { get { return _age; } }
public int Age { get; }| @echo off | |
| IF "%~1"=="" ( | |
| call ECHO No version specified. Call with '?' parameter to get a list of available versions | |
| ) ELSE ( | |
| IF "%~1"=="?" ( | |
| call ECHO Available versions: | |
| call ECHO ------------------- | |
| call dir %PROGRAMDATA%\chocolatey\lib /b | findstr /i "terraform" | |
| ) ELSE ( |
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |