示例#1
0
 /// <summary>
 /// Determine the type of the parameter for the specified argument index.
 /// </summary>
 public override TypeRefBase GetParameterType(int argumentIndex)
 {
     if (_indexerRef is IndexerRef)
     {
         TypeRefBase parameterTypeRef = MethodRef.GetParameterType(_indexerRef.Reference, argumentIndex, _expression);
         if (parameterTypeRef != null)
         {
             return(parameterTypeRef);
         }
     }
     // By default, assume we're indexing an array type
     return(TypeRef.IntRef);
 }