Skip to content

feat: make IgniteUI.Blazor.Lite trim-compatible - #359

Draft
damyanpetev wants to merge 2 commits into
masterfrom
dpetev/trimmable
Draft

feat: make IgniteUI.Blazor.Lite trim-compatible#359
damyanpetev wants to merge 2 commits into
masterfrom
dpetev/trimmable

Conversation

@damyanpetev

Copy link
Copy Markdown
Member

Description

Motivation / Context

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • .NET version:
  • Hosting model:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Closes #

Comment on lines +452 to +470
foreach (var f in enumType.GetFields())
{
if (f.IsPublic && !f.IsSpecialName)
{
foreach (var attr in f.GetCustomAttributes(true))
{
if (attr.GetType().Name == "WCEnumNameAttribute")
{
if (wcEnumTransform == null)
{
wcEnumTransform = new Dictionary<string, string>();
}
var wc = (WCEnumNameAttribute)attr;
var wcEnumName = Camelize(wc.Name);
wcEnumTransform.Add(f.Name.ToLower(), wcEnumName);
}
}
}
}
Comment on lines +456 to +468
foreach (var attr in f.GetCustomAttributes(true))
{
if (attr.GetType().Name == "WCEnumNameAttribute")
{
if (wcEnumTransform == null)
{
wcEnumTransform = new Dictionary<string, string>();
}
var wc = (WCEnumNameAttribute)attr;
var wcEnumName = Camelize(wc.Name);
wcEnumTransform.Add(f.Name.ToLower(), wcEnumName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant