添加Lesson21

This commit is contained in:
2025-11-05 10:39:06 +08:00
parent ed22d4bcbd
commit 7ca83872f3
6 changed files with 262 additions and 0 deletions
+5
View File
@@ -6,6 +6,10 @@ using System.Threading.Tasks;
namespace
{
class MyCustomAttribute: Attribute
{
}
public struct Position
{
public int x;
@@ -19,6 +23,7 @@ namespace 反射练习库
}
public class Player
{
[MyCustom()]
public string name;
public int hp;
public int atk;