public AnnotationDef(string name, AnnotationTargetSet annotationTargets, ListPropertyType listPropertyType, IList <String> items) : base(name) { AnnotationTargets = annotationTargets; Type = listPropertyType.AnnotationType; Lookup = listPropertyType.Lookup; _items = MakeReadOnly(items) ?? ImmutableList.Empty <string>(); }
protected bool Equals(ListPropertyType other) { return(string.Equals(Lookup, other.Lookup) && AnnotationType == other.AnnotationType); }