way to read enum? Yes, I know I can use the number directly, but what is the 
solution to use enum? Thanks

`FileMode.cs` is simple 
    
    
    namespace System.IO
    {
      [ComVisible(true)]
      [Serializable]
      public enum FileMode
      {
        CreateNew = 1,
        Create = 2,
        Open = 3,
        OpenOrCreate = 4,
        Truncate = 5,
        Append = 6,
      }
    }
    
    
    Run

and my code is simple too which tried to access `FileMode.Create`. However 3 
dumps are null, so my code is wrong
    
    
    import sugar
    var
        SYSTEM_IO_DLL = load("SYSTEM.IO")
    
    dump SYSTEM_IO_DLL.GetType("System.IO")
    dump SYSTEM_IO_DLL.GetType("System.IO.FileMode")
    dump SYSTEM_IO_DLL.GetType("System.IO.FileMode.Create")
    
    
    Run

Reply via email to