Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
553 views

I have a helper method that returns a list of public static readonly fields of a type: public static ReadOnlyCollection<T> GetFields<T>() where T : class { return typeof(T)....
user246392's user avatar
  • 3,147
2 votes
1 answer
1k views

I have a program which was successfully published with NET8 NativeAOT, but Type.GetProperties() works for some class where properties r returned properly, but not for others, where it returns no ...
Xiaoyu Zou's user avatar
2 votes
2 answers
442 views

When I force the C# AOT compiler with MethodImpl(MethodImplOptions.AggressiveInlining) to do a really long method: At the very end, it stops inlining and starts calling every possible method (even ...
user1576055's user avatar
1 vote
1 answer
5k views

The framework I am using is .Net7. Here is my code: var Options=new JsonSerializerOptions() { Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(UnicodeRanges.All) }; List<ThemeModel&...
Melon NG's user avatar
  • 3,064