コード例 #1
0
 public int Add(PEStream.PEComponent peComponent)
 {
     if (peComponent.Size > 0L)
     {
         return(this.Add(peComponent));
     }
     return(-1);
 }
コード例 #2
0
 public int Compare(object a, object b)
 {
     PEStream.PEComponent component  = (PEStream.PEComponent)a;
     PEStream.PEComponent component2 = (PEStream.PEComponent)b;
     if (component.Address > component2.Address)
     {
         return(1);
     }
     if (component.Address < component2.Address)
     {
         return(-1);
     }
     return(0);
 }