public IEnumerable <object> Annotations(Type type) { if (type == null) { throw new ArgumentNullException(nameof(type)); } return((type == typeof(ElementNode) || type == typeof(ITypedElement) || type == typeof(IShortPathGenerator)) ? (new[] { this }) : AnnotationsInternal.OfType(type)); }
public IEnumerable <object> Annotations(Type type) { return(type == typeof(SourceNode) || type == typeof(ISourceNode) || type == typeof(IResourceTypeSupplier) ? (new[] { this }) : AnnotationsInternal.OfType(type)); }