Guest User

Untitled

a guest
Oct 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. using SkiaSharp;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Reflection;
  5.  
  6. namespace Example
  7. {
  8. class Program
  9. {
  10. static void Main()
  11. {
  12. Type type = typeof(SKColors);
  13. FieldInfo[] fis = type.GetFields(BindingFlags.Static | BindingFlags.Public);
  14. List<SKColor> colors = new List<SKColor>();
  15.  
  16. foreach(FieldInfo fi in fis)
  17. {
  18. //colors.Add(fi.WhatIsThis); // The point in question
  19. }
  20. }
  21. }
  22. }
Add Comment
Please, Sign In to add comment