title: C# solution using SortedList
body: <p>How to transform my code using SortedList. This is my code.</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  
  namespace LibraryTest
  {
      class Program
      {
          static void Main(string[] args)
          {
              Book obj1 = new Book();
  
              Console.Clear();
              Library.SearchingForABook();
              Library.AllBooks();
              Library.InformationForABook(&quot;Sunlight&quot;, &quot;John Doe&quot;, &quot;FreePublish&quot;, 2019, &quot;978-954-65-5919-7\n&quot;);
              Library.InformationForABook(&quot;Moonrise&quot;, &quot;Anthony Doe&quot;, &quot;PaidPublish&quot;, 2016, &quot;978-178-32-9960-7\n&quot;);
              Library.InformationForABook(&quot;Nightlight&quot;, &quot;Ana Bell&quot;, &quot;EcoPublish&quot;, 2014, &quot;978-954-28-1483-2\n&quot;);
              obj1.Show();
  
              Console.WriteLine(&quot;Delete book&quot;);
              Console.WriteLine();
              DeleteABook();
              GC.Collect();
          }
          public static void DeleteABook()
          {
              Book obj2 = new Book();
          }
      }
      class Library
      {
          private string _name;
          public string Name { get; set; }
          public Library(string n)
          {
              _name = n;
          }
          public static void SearchingForABook()
          {
              List&lt;string&gt; books = new List&lt;string&gt;();
              books.Add(&quot;Joe Martin&quot;);
              books.Add(&quot;Ned Doe&quot;);
              books.Add(&quot;Ana Parker&quot;);
  
              Console.Write(&quot;Author search: &quot;);
              string _name = Console.ReadLine();
              Console.WriteLine();
  
              if (_name == &quot;Ana Bell&quot;)
              {
                  Console.WriteLine(&quot;Book available&quot;);
                  Console.WriteLine();
                  InformationForABook(&quot;=Nightlight&quot;, &quot;Ana Bell&quot;, &quot;EcoPublish&quot;, 2014, &quot;978-954-28-1483-2\n&quot;);
                  Console.WriteLine();
              }
              else if (_name == &quot;Мигел де Сервантес&quot;)
              {
                  Console.WriteLine(&quot;Book available&quot;);
                  Console.WriteLine();
                  InformationForABook(&quot;Sunlight&quot;, &quot;John Doe&quot;, &quot;FreePublish&quot;, 2019, &quot;978-954-65-5919-7\n&quot;);
                  Console.WriteLine();
              }
              else if (_name == &quot;Moonrise&quot;)
              {
                  Console.WriteLine(&quot;Книга в наличност&quot;);
                  Console.WriteLine();
                  InformationForABook(&quot;Moonrise&quot;, &quot;Moonrise&quot;, &quot;PaidPublish&quot;, 2016, &quot;978-178-32-9960-7\n&quot;);
                  Console.WriteLine();
              }
              else
              {
                  Console.WriteLine(&quot;No books available from this author.&quot;);
                  Console.WriteLine();
              }
          }
          public static void InformationForABook(string title, string author,
          string publishers, int year, string number)
          {
              Console.WriteLine(&quot;Title: &quot; + title);
              Console.WriteLine(&quot;Author: &quot; + author);
              Console.WriteLine(&quot;Publisher: &quot; + publishers);
              Console.WriteLine(&quot;Year: &quot; + year);
              Console.WriteLine(&quot;ISBN number: &quot; + number);
          }
          public static void AllBooks()
          {
              Console.WriteLine();
              Console.WriteLine(&quot;Books available:&quot;);
              Console.WriteLine();
          }
      }
      class Book
      {
          private string _title;
          private string _author;
          private string _publishers;
          private int _year;
          private string number;
          public string Title { get; set; }
          public string Author
          {
              get
              {
                  return _author;
              }
              set
              {
                  _author = value;
              }
          }
          public string Publishers { get; set; }
          public int Year { get; set; }
          public string Number { get; set; }
          public Book()
          {
              Console.WriteLine(&quot;Add new book:&quot;);
              Console.WriteLine();
              Console.Write(&quot;Title: &quot;);
              _title = Console.ReadLine();
              Console.Write(&quot;Author: &quot;);
              _author = Console.ReadLine();
              string author = _author;
              Console.Write(&quot;Publisher: &quot;);
              _publishers = Console.ReadLine();
              Console.Write(&quot;Year: &quot;);
              _year = int.Parse(Console.ReadLine());
              Console.Write(&quot;ISBN number: &quot;);
              number = Console.ReadLine();
          }
          public void Show()
          {
              Console.WriteLine(&quot;Title: &quot; + _title);
              Console.WriteLine(&quot;Author: &quot; + _author);
              Console.WriteLine(&quot;Publisher: &quot; + _publishers);
              Console.WriteLine(&quot;Year: &quot; + _year);
              Console.WriteLine(&quot;ISBN number: &quot; + number);
              Console.WriteLine();
          }
          ~Book()
          {
              Console.WriteLine();
              Console.WriteLine(&quot;Book {0} is deleted&quot;, _title);
          }
      }
  }
  </code></pre>
  <p>My goal is basically the same but I need to use SortedList. I apologize for my bad English(this is not my native language). And yes it's part of my homework. I will gladly accept any help or tips!
  Also, I want to know if there is a way to use Cyrillic for the titles, authors, and publisher of the books because when I tried to run the code using Cyrillic symbols the compiler gave me an error</p>