Skip to content

Commit fc6089c

Browse files
committed
refactor(extensions): 移除已过时的 ReflectionExtensions 类
在现代 .NET(.NET 5+)中,Type 类已直接包含所有反射功能, 此扩展类不再需要。 迁移指南: - type.GetTypeInfo() -> 直接使用 type - type.GetGenericArguments() -> type.GetGenericArguments() - type.IsGenericType() -> type.IsGenericType - type.GetProperties() -> type.GetProperties() - type.GetProperty(name) -> type.GetProperty(name) - type.GetField(name) -> type.GetField(name) - type.IsEnum() -> type.IsEnum - type.GetMethod(...) -> type.GetMethod(...) - type.GetConstructor(types) -> type.GetConstructor(types) - type.IsValueType() -> type.IsValueType - type.IsEntity() -> type.IsClass
1 parent 10319a1 commit fc6089c

1 file changed

Lines changed: 0 additions & 314 deletions

File tree

GameFrameX.Foundation.Extensions/ReflectionExtensions.cs

Lines changed: 0 additions & 314 deletions
This file was deleted.

0 commit comments

Comments
 (0)