Пример #1
0
    public Type ToType()
    {
        Type t;

        if (!ILReader2.TryGetType(Name, out t))
        {
            return(null);
        }
        return(t);
    }
Пример #2
0
 public void DeclareLocals(ILGenerator ilg)
 {
     foreach (string local in Locals)
     {
         Type t;
         if (!ILReader2.TryGetType(local, out t))
         {
             break;
         }
         ilg.DeclareLocal(t);
     }
 }