Exemplo n.º 1
0
 /// <summary>
 ///   Creates a predicate to check if a component shares a namespace with another.
 /// </summary>
 /// <typeparam name = "T"> The component type to test namespace against. </typeparam>
 /// <param name = "includeSubnamespaces"> If set to true, will also include types from subnamespaces. </param>
 /// <returns> true if the component is in the same namespace. </returns>
 public BasedOnDescriptor InSameNamespaceAs <T>(bool includeSubnamespaces) where T : class
 {
     return(Where(Component.IsInSameNamespaceAs <T>(includeSubnamespaces)));
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Creates a predicate to check if a component shares a namespace with another.
 /// </summary>
 /// <param name = "type"> The component type to test namespace against. </param>
 /// <param name = "includeSubnamespaces"> If set to true, will also include types from subnamespaces. </param>
 /// <returns> true if the component is in the same namespace. </returns>
 public BasedOnDescriptor InSameNamespaceAs(Type type, bool includeSubnamespaces)
 {
     return(Where(Component.IsInSameNamespaceAs(type, includeSubnamespaces)));
 }
Exemplo n.º 3
0
 /// <summary>
 ///   Creates a predicate to check if a component shares a namespace with another.
 /// </summary>
 /// <typeparam name = "T"> The component type to test namespace against. </typeparam>
 /// <returns> true if the component is in the same namespace. </returns>
 public BasedOnDescriptor InSameNamespaceAs <T>()
 {
     return(Where(Component.IsInSameNamespaceAs <T>()));
 }
Exemplo n.º 4
0
 /// <summary>
 ///   Creates a predicate to check if a component shares a namespace with another.
 /// </summary>
 /// <param name = "type"> The component type to test namespace against. </param>
 /// <returns> true if the component is in the same namespace. </returns>
 public BasedOnDescriptor InSameNamespaceAs(Type type)
 {
     return(Where(Component.IsInSameNamespaceAs(type)));
 }