Esempio n. 1
0
 public ILRuntimeConstructorInfo(ILMethod m)
 {
     method     = m;
     parameters = new ILRuntimeParameterInfo[m.ParameterCount];
     for (int i = 0; i < m.ParameterCount; i++)
     {
         parameters[i] = new ILRuntimeParameterInfo(m.Parameters[i]);
     }
 }
Esempio n. 2
0
 public ILRuntimeConstructorInfo(ILMethod m)
 {
     method     = m;
     parameters = new ILRuntimeParameterInfo[m.ParameterCount];
     for (int i = 0; i < m.ParameterCount; i++)
     {
         var pd = m.Definition.Parameters[i];
         parameters[i] = new ILRuntimeParameterInfo(pd, m.Parameters[i], this);
     }
 }
Esempio n. 3
0
 public ILRuntimeMethodInfo(ILMethod m)
 {
     method     = m;
     definition = m.Definition;
     appdomain  = m.DeclearingType.AppDomain;
     parameters = new ILRuntimeParameterInfo[m.ParameterCount];
     for (int i = 0; i < m.ParameterCount; i++)
     {
         parameters[i] = new ILRuntimeParameterInfo(m.Parameters[i]);
     }
 }
Esempio n. 4
0
 public ILRuntimePropertyInfo(Mono.Cecil.PropertyDefinition definition, ILType dType)
 {
     this.definition = definition;
     this.dType      = dType;
     appdomain       = dType.AppDomain;
     parameters      = new ILRuntimeParameterInfo[definition.Parameters.Count];
     for (int i = 0; i < definition.Parameters.Count; i++)
     {
         var pd            = definition.Parameters[i];
         var parameterType = dType.AppDomain.GetType(pd.ParameterType, null, null);
         parameters[i] = new ILRuntimeParameterInfo(pd, parameterType, this, appdomain);
     }
 }