- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
class Book
    {
        public void BookName(ref string file, ref int Index)
        {
            string[] ReadFile = File.ReadAllLines("NameFile.txt", Encoding.Default);
            file = ReadFile[Index];
        }
        public void BookAuthor(ref string file, ref int Index)
        {
            string[] ReadFile = File.ReadAllLines("AuthorFile.txt", Encoding.Default);
            file = ReadFile[Index];
        }
        public void BookDescription(ref string file, ref int Index)
        {
            string[] ReadFile = File.ReadAllLines("DescriptionFile.txt", Encoding.Default);
            file = ReadFile[Index];
        }
        public void BookTags(ref string file, ref int Index)
        {
            string[] ReadFile = File.ReadAllLines("TagFile.txt", Encoding.Default);
            file = ReadFile[Index];
        }
    }
                                 
        
Вот в Java фич сделали поминимуму, за что теперь их все ругают.
PVS-Studio
http://www.viva64.com/en/n/0090/
https://twitter.com/ID_AA_Carmack/status/258940507869310976
А насчет си - я видел пост от автора того же анализатора, который отказался проверять какую-то либу, потому что там "макросы разворачиваются в макросы".