Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using SkiaSharp;
- using System;
- using System.Collections.Generic;
- using System.Reflection;
- namespace Example
- {
- class Program
- {
- static void Main()
- {
- Type type = typeof(SKColors);
- FieldInfo[] fis = type.GetFields(BindingFlags.Static | BindingFlags.Public);
- List<SKColor> colors = new List<SKColor>();
- foreach(FieldInfo fi in fis)
- {
- //colors.Add(fi.WhatIsThis); // The point in question
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment