コード例 #1
0
        public string GetDetailsString()
        {
            var builder = new StringBuilder();

            builder.AppendLine(Name);
            builder.AppendLine();
            builder.AppendLine(DescriptorBlock.GetDetailsString());

            return(builder.ToString());
        }
コード例 #2
0
            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);
            }