Esempio n. 1
0
 public UnknownHandlerInfo(TypeDefinition type)
 {
     this.type  = type;
     fieldsInfo = new FieldsInfo(type);
     countMethods();
     findOverrideMethods();
     executeMethodThrows = countThrows(executeMethod);
 }
Esempio n. 2
0
 public UnknownHandlerInfo(TypeDefinition type)
 {
     this.type = type;
     fieldsInfo = new FieldsInfo(type);
     countMethods();
     findOverrideMethods();
     executeMethodThrows = countThrows(executeMethod);
 }
Esempio n. 3
0
 public UnknownHandlerInfo(TypeDefinition type, CsvmInfo csvmInfo)
 {
     this.type     = type;
     this.csvmInfo = csvmInfo;
     fieldsInfo    = new FieldsInfo(getFields(type));
     countMethods();
     findOverrideMethods();
     executeMethodThrows = countThrows(executeMethod);
     executeMethodPops   = countPops(executeMethod);
 }
Esempio n. 4
0
 public UnknownHandlerInfo(TypeDefinition type, CsvmInfo csvmInfo)
 {
     this.type = type;
     this.csvmInfo = csvmInfo;
     fieldsInfo = new FieldsInfo(getFields(type));
     countMethods();
     findOverrideMethods();
     executeMethodThrows = countThrows(executeMethod);
     executeMethodPops = countPops(executeMethod);
 }
Esempio n. 5
0
 public bool isSame(FieldsInfo other)
 {
     if (numEnums != other.numEnums)
         return false;
     if (fieldTypes.Count != other.fieldTypes.Count)
         return false;
     foreach (var kv in fieldTypes) {
         int num;
         if (!other.fieldTypes.TryGetValue(kv.Key, out num))
             return false;
         if (kv.Value != num)
             return false;
     }
     return true;
 }
Esempio n. 6
0
 public bool isSame(FieldsInfo other)
 {
     if (numEnums != other.numEnums)
     {
         return(false);
     }
     if (fieldTypes.Count != other.fieldTypes.Count)
     {
         return(false);
     }
     foreach (var kv in fieldTypes)
     {
         int num;
         if (!other.fieldTypes.TryGetValue(kv.Key, out num))
         {
             return(false);
         }
         if (kv.Value != num)
         {
             return(false);
         }
     }
     return(true);
 }