public ElementRef ChangeParent(ElementRef parent) { return(ChangeProp(ImClone(this), im => im.Parent = parent)); }
private const string ATTR_INDEX = "index"; // Not L10N protected ElementRef(ElementRef parent) { Parent = parent; Prototype = this; }
protected bool Equals(ElementRef other) { return(Equals(Parent, other.Parent) && Index == other.Index && string.Equals(Name, other.Name)); }
private static Exception AnnotationsNotSupported(ElementRef elementRef) { throw new InvalidOperationException(String.Format(Resources.DocumentAnnotations_AnnotationsNotSupported_The_element___0___cannot_have_annotations_, elementRef)); }
private static Exception AnnotationDoesNotApplyException(string name, ElementRef elementRef) { return(new InvalidDataException(string.Format(Resources.DocumentAnnotations_AnnotationDoesNotApplyException_Annotation___0___does_not_apply_to_element___1___, name, elementRef))); }
private static Exception ElementNotFoundException(ElementRef elementRef) { return(new InvalidDataException(string.Format(Resources.DocumentAnnotations_ElementNotFoundException_Could_not_find_element___0___, elementRef))); }