2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -0,0 +1,8 @@
$list = New-Object -TypeName 'Collections.Generic.LinkedList[PSCustomObject]'
for($i=1; $i -lt 10; $i++)
{
$list.AddLast([PSCustomObject]@{ID=$i; X=100+$i;Y=200+$i}) | Out-Null
}
$list

View file

@ -0,0 +1,3 @@
$list.AddFirst([PSCustomObject]@{ID=123; X=123;Y=123}) | Out-Null
$list

View file

@ -0,0 +1,14 @@
$current = $list.First
while(-not ($current -eq $null))
{
If($current.Value.X -eq 105)
{
$list.AddAfter($current, [PSCustomObject]@{ID=345;X=345;Y=345}) | Out-Null
break
}
$current = $current.Next
}
$list

View file

@ -0,0 +1,3 @@
$list.AddLast([PSCustomObject]@{ID=789; X=789;Y=789}) | Out-Null
$list