Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,28 +0,0 @@
Add-Type -Language CSharp -TypeDefinition @'
public class MyClass
{
public MyClass()
{
}
public void SomeMethod()
{
}
private int _variable;
public int Variable
{
get { return _variable; }
set { _variable = value; }
}
public static void Main()
{
// instantiate it
MyClass instance = new MyClass();
// invoke the method
instance.SomeMethod();
// set the variable
instance.Variable = 99;
// get the variable
System.Console.WriteLine( "Variable=" + instance.Variable.ToString() );
}
}
'@

View file

@ -1,17 +0,0 @@
class MyClass
{
[type]$MyProperty1
[type]$MyProperty2 = "Default value"
# Constructor
MyClass( [type]$MyParameter1, [type]$MyParameter2 )
{
# Code
}
# Method ( [returntype] defaults to [void] )
[returntype] MyMethod( [type]$MyParameter3, [type]$MyParameter4 )
{
# Code
}
}

View file

@ -1,33 +0,0 @@
class Banana
{
# Properties
[string]$Color
[boolean]$Peeled
# Default constructor
Banana()
{
$This.Color = "Green"
}
# Constructor
Banana( [boolean]$Peeled )
{
$This.Color = "Green"
$This.Peeled = $Peeled
}
# Method
Ripen()
{
If ( $This.Color -eq "Green" ) { $This.Color = "Yellow" }
Else { $This.Color = "Brown" }
}
# Method
[boolean] IsReadyToEat()
{
If ( $This.Color -eq "Yellow" -and $This.Peeled ) { return $True }
Else { return $False }
}
}

View file

@ -1,5 +0,0 @@
$MyBanana = [banana]::New()
$YourBanana = [banana]::New( $True )
$YourBanana.Ripen()
If ( -not $MyBanana.IsReadyToEat() -and $YourBanana.IsReadyToEat() )
{ $MySecondBanana = $YourBanana }