Пример #1
0
 public UnknownHandlerInfo(TypeDefinition type)
 {
     this.type  = type;
     fieldsInfo = new FieldsInfo(type);
     countMethods();
     findOverrideMethods();
     executeMethodThrows = countThrows(executeMethod);
 }
Пример #2
0
 public UnknownHandlerInfo(TypeDefinition type)
 {
     this.type = type;
     fieldsInfo = new FieldsInfo(type);
     countMethods();
     findOverrideMethods();
     executeMethodThrows = countThrows(executeMethod);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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;
 }
Пример #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);
 }