Daily update on 20221229 by nitload youmu
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using OpenTK;
|
||||
using StgSharp;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Logic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -14,34 +15,19 @@ namespace Debug
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
A a=new A();
|
||||
OperationHandler operationHandler = new OperationHandler(cw);
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
operationHandler.Invoke(i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class A
|
||||
{
|
||||
public static int a = 10;
|
||||
public int b = 10;
|
||||
}
|
||||
|
||||
static class b
|
||||
{
|
||||
public static void change(this A a, int b)
|
||||
public static void cw(int x)
|
||||
{
|
||||
a.b = b;
|
||||
Console.WriteLine(x);
|
||||
}
|
||||
public delegate void OperationHandler(int x);
|
||||
}
|
||||
|
||||
static class c
|
||||
{
|
||||
public static void change(this A a, int b)
|
||||
{
|
||||
a.b = b++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user