public string GetDetailsString() { var builder = new StringBuilder(); builder.AppendLine(Name); builder.AppendLine(); builder.AppendLine(DescriptorBlock.GetDetailsString()); return(builder.ToString()); }
public void Add(DescriptorBlock descriptorBlock) { var cs = descriptorBlock.ToJson().Md5Hash(); if (References == null) { References = new List <DescriptorBlock>(); } if (References.Any(reference => reference.ToJson().Md5Hash() == cs)) { return; } References.Add(descriptorBlock); }