Пример #1
0
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
                                         object value, Type destinationType)
        {
            Support.Identification.ObjectId objectId = value as Support.Identification.ObjectId;
            if (destinationType == typeof(string) && objectId != null)
            {
                if (objectId.Value == null)
                {
                    return("");
                }
                else
                {
                    return(objectId.Value);
                }
            }

            return(base.ConvertTo(context, culture, value, destinationType));
        }
Пример #2
0
 public EhrStatus(Support.Identification.ObjectId subjectId, string subjectNamespace)
     : this(null, new PartySelf(new PartyRef(subjectId, subjectNamespace, "PERSON")), true, true, null)
 {
 }