Exemple #1
0
 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));
 }
Exemple #2
0
 public IEnumerable <object> Annotations(Type type)
 {
     return(type == typeof(SourceNode) || type == typeof(ISourceNode) || type == typeof(IResourceTypeSupplier)
         ? (new[] { this })
         : AnnotationsInternal.OfType(type));
 }