fork(2) download
  1. using System;
  2. using System.Linq;
  3. using System.Reflection;
  4.  
  5.  
  6. namespace ConsoleApplication1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12.  
  13. typeof(Test).GetMembers(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)
  14. .OrderBy(member => member.MetadataToken).ToList()
  15. .ForEach( member => Console.WriteLine(member.Name));
  16.  
  17. Console.ReadLine();
  18. }
  19. }
  20.  
  21. public class Test
  22. {
  23. public int SecondProperty { get; set; }
  24. public int FirstProperty { get; set; }
  25.  
  26. }
  27. }
Success #stdin #stdout 0.05s 34112KB
stdin
Standard input is empty
stdout
.ctor
get_SecondProperty
set_SecondProperty
get_FirstProperty
set_FirstProperty
SecondProperty
FirstProperty