public UsageBasedExpressionFixer(MethodSpecificContext methodContext)
 {
     base();
     this.methodContext = methodContext;
     V_0 = methodContext.get_Method().get_ReturnType();
     this.currentTypeSystem = methodContext.get_Method().get_Module().get_TypeSystem();
     this.isBoolReturnType  = String.op_Equality(V_0.get_FullName(), this.currentTypeSystem.get_Boolean().get_FullName());
     this.isCharReturnType  = String.op_Equality(V_0.get_FullName(), this.currentTypeSystem.get_Char().get_FullName());
     return;
 }
Exemplo n.º 2
0
 internal void AddInnerMethodParametersToContext(MethodSpecificContext innerMethodContext)
 {
     this.get_ParameterDefinitionToNameMap().AddRange <ParameterDefinition, string>(innerMethodContext.get_ParameterDefinitionToNameMap());
     V_0 = innerMethodContext.get_Method().get_Parameters().GetEnumerator();
     try
     {
         while (V_0.MoveNext())
         {
             V_1 = V_0.get_Current();
             this.get_ParameterDefinitionToNameMap().set_Item(V_1, V_1.get_Name());
         }
     }
     finally
     {
         V_0.Dispose();
     }
     return;
 }