public object Clone() { var result = new SCIMRepresentationAttribute(Id) { Id = Id, ValuesString = ValuesString.ToList(), ValuesBoolean = ValuesBoolean.ToList(), ValuesDateTime = ValuesDateTime.ToList(), ValuesInteger = ValuesInteger.ToList(), ValuesReference = ValuesReference.ToList(), ValuesDecimal = ValuesDecimal.ToList(), ValuesBinary = ValuesBinary.ToList(), SchemaAttribute = (SCIMSchemaAttribute)SchemaAttribute.Clone() }; foreach(var cloneAttribute in Values.Select(v => (SCIMRepresentationAttribute)v.Clone()).ToList()) { result.Add(cloneAttribute); } return result; }
public object Clone() { var result = new SCIMRepresentationAttribute(Id, AttributeId) { Id = Id, AttributeId = AttributeId, ValueBinary = ValueBinary, ValueBoolean = ValueBoolean, ValueDateTime = ValueDateTime, ValueDecimal = ValueDecimal, ValueInteger = ValueInteger, ValueReference = ValueReference, ValueString = ValueString, SchemaAttribute = (SCIMSchemaAttribute)SchemaAttribute.Clone(), FullPath = FullPath, ParentAttributeId = ParentAttributeId, SchemaAttributeId = SchemaAttributeId, Namespace = Namespace, RepresentationId = RepresentationId, ResourceType = ResourceType }; return(result); }