添加Lesson21
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user