コード例 #1
0
        public string GetFurtherIdentification(FurtherIdentificationType.SupportedIds id)
        {
            if (FurtherIdentification == null)
            {
                return("");
            }
            var fId = FurtherIdentification.FirstOrDefault(p => p.IdentificationType == id.ToString());

            if (fId == null)
            {
                return("");
            }
            return(fId.Value);
        }
コード例 #2
0
        public void SetFurtherIdenfication(FurtherIdentificationType.SupportedIds id, string value)
        {
            if (FurtherIdentification == null)
            {
                FurtherIdentification = new List <FurtherIdentificationType>();
            }
            var fId = FurtherIdentification.FirstOrDefault(p => p.IdentificationType == id.ToString());

            if (fId != null)
            {
                FurtherIdentification.Remove(fId);
            }
            FurtherIdentification.Add(new FurtherIdentificationType()
            {
                IdentificationType = id.ToString(), Value = value
            });
        }