Пример #1
0
 public object Clone()
 {
     return(new SCIMSchemaAttribute(Id)
     {
         CanonicalValues = CanonicalValues == null ? new List <string>() : CanonicalValues.ToList(),
         CaseExact = CaseExact,
         Description = Description,
         MultiValued = MultiValued,
         Mutability = Mutability,
         Name = Name,
         ReferenceTypes = ReferenceTypes.ToList(),
         Required = Required,
         Returned = Returned,
         SubAttributes = SubAttributes.Select(s => (SCIMSchemaAttribute)s.Clone()).ToList(),
         Type = Type,
         Uniqueness = Uniqueness,
         DefaultValueInt = DefaultValueInt == null ? new List <int>() : DefaultValueInt.ToList(),
         DefaultValueString = DefaultValueString == null ? new List <string>() : DefaultValueString.ToList(),
         Id = Id
     });
 }
Пример #2
0
 public bool ShouldSerializeCanonicalValues()
 {
     return(CanonicalValues != null && CanonicalValues.Any());
 }