Commit fc6089c
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.IsClass1 parent 10319a1 commit fc6089c
1 file changed
Lines changed: 0 additions & 314 deletions
Lines changed: 0 additions & 314 deletions
This file was deleted.
0 commit comments