示例#1
0
        public void Set(KernelMemberInfo kmi)
        {
            tbName.Text = kmi.Name;            
            tbDeserializedCRC.Text = kmi.DeserializedChecksum.ToString();            
            tbIsDummy.Text = kmi.IsDummy.ToString();
            tbCRCGood.Text = kmi.TryVerifyChecksums().ToString();

            if (kmi.Type != null)
            {
                tbType.Text = kmi.Type.Name;
                tbAssembly.Text = kmi.Type.Assembly.FullName;
                tbAssemblyCRC.Text = kmi.GetAssemblyChecksum().ToString();
            }
            else
            {
                tbType.Text = string.Empty;
                tbAssembly.Text = string.Empty;
                tbAssemblyCRC.Text = string.Empty;
            }
        }
示例#2
0
 private string GetCommon(KernelMemberInfo kmi)
 {
     StringBuilder sb = new StringBuilder();
     if (kmi != null)
     {
         sb.AppendLine("Name                  : " + kmi.Name);
         sb.AppendLine("Declaring Type        : " + kmi.Type.Name);
         sb.AppendLine("Declaring Assembly    : " + kmi.Type.Assembly.FullName);
         sb.AppendLine("Declaring Assembly CRC: " + kmi.GetAssemblyChecksum().ToString());
         sb.AppendLine("Deserialized CRC      : " + kmi.DeserializedChecksum.ToString());
         sb.AppendLine("Checksum Match?       : " + kmi.TryVerifyChecksums().ToString());
         sb.AppendLine("Is Dummy?             : " + kmi.IsDummy.ToString());
     }
     return sb.ToString();
 }