Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862.