Skip to content

Releases: byme8/Apparatus.AOT.Reflection

v1.1.3

17 Jun 13:04
Compare
Choose a tag to compare
Fix fail.

v1.1.2

12 Jun 14:17
Compare
Choose a tag to compare

Add description from attribute.

v1.1.1

12 Jun 13:43
Compare
Choose a tag to compare

Add easy way to get enum value:

EnumHelper.Get<UserKind>(1);
// {
//   Name: Admin,
//   RawValue: 1,
//   Value: Admin,
//   Attributes: [
//     {
//       Description: Admin user,
//       TypeId: DescriptionAttribute
//     }
//   ]
// }

EnumHelper.GetOrDefault(43, UserKind.Admin);
// {
//   Name: Admin,
//   RawValue: 1,
//   Value: Admin,
//   Attributes: [
//     {
//       Description: Admin user,
//       TypeId: DescriptionAttribute
//     }
//   ]
// }

v1.0.0

11 Oct 12:22
Compare
Choose a tag to compare
  • Added ability to get int from enum value
  • Added attribute [AOTReflection] to force source generation

v1.0.0-preview.1

07 Oct 11:32
Compare
Choose a tag to compare
Fix dotnet version.