/// <summary> /// Visits the payload element and removes the collection name if it is present. /// </summary> /// <param name="payloadElement">The payload element to visit</param> public override void Visit(ComplexInstanceCollection payloadElement) { CollectionNameAnnotation collectionNameAnnotation = payloadElement.GetAnnotation<CollectionNameAnnotation>(); if (payloadElement != null && collectionNameAnnotation != null) { payloadElement.Annotations.Remove(collectionNameAnnotation); } base.Visit(payloadElement); }
/// <summary> /// Visits the payload element and removes the collection name if it is present. /// </summary> /// <param name="payloadElement">The payload element to visit</param> public override void Visit(ComplexInstanceCollection payloadElement) { CollectionNameAnnotation collectionNameAnnotation = payloadElement.GetAnnotation<CollectionNameAnnotation>(); if (payloadElement != null && collectionNameAnnotation != null) { collectionNameAnnotation.Name = string.Empty; } base.Visit(payloadElement); }
/// <summary> /// Visits the payload element and removes the collection name if it is present. /// </summary> /// <param name="payloadElement">The payload element to visit</param> public override void Visit(ComplexInstanceCollection payloadElement) { CollectionNameAnnotation collectionNameAnnotation = payloadElement.GetAnnotation <CollectionNameAnnotation>(); if (payloadElement != null && collectionNameAnnotation != null) { collectionNameAnnotation.Name = string.Empty; } base.Visit(payloadElement); }
/// <summary> /// Visits the payload element and removes the collection name if it is present. /// </summary> /// <param name="payloadElement">The payload element to visit</param> public override void Visit(ComplexInstanceCollection payloadElement) { CollectionNameAnnotation collectionNameAnnotation = payloadElement.GetAnnotation <CollectionNameAnnotation>(); if (payloadElement != null && collectionNameAnnotation != null) { payloadElement.Annotations.Remove(collectionNameAnnotation); } base.Visit(payloadElement); }