public override String ToString() { var p = new TpmStructPrinter(); p.PrintName(GetType().ToString()); ToStringInternal(p); return p.ToString(); }
public override String ToString() { var p = new TpmStructPrinter(); p.PrintName(GetType().ToString()); ToStringInternal(p); return(p.ToString()); }
virtual internal void ToStringInternal(TpmStructPrinter p) { bool enabled = dbg.Enabled; dbg.Enabled = false; var members = GetFieldsToMarshal(); dbg.Enabled = enabled; foreach (var mem in members) { MemberInfo memInfo = mem; object memVal = Globs.GetMember(memInfo, this); Type memType = Globs.GetMemberType(memInfo); p.Print(memInfo.Name, Globs.ToCSharpStyle(memType.Name), memVal); } }
internal override void ToStringInternal(TpmStructPrinter p) { p.Print("HashAlg", "TpmAlgId", HashAlg); p.Print("HashData", "byte", HashData); }