コード例 #1
0
 /// <summary>
 ///   Creates a predicate to check if a component is in a namespace.
 /// </summary>
 /// <param name = "namespace"> The namespace. </param>
 /// <returns> true if the component type is in the namespace. </returns>
 public BasedOnDescriptor InNamespace(string @namespace)
 {
     return(Where(Component.IsInNamespace(@namespace, false)));
 }
コード例 #2
0
 /// <summary>
 ///   Creates a predicate to check if a component is in a namespace.
 /// </summary>
 /// <param name = "namespace"> The namespace. </param>
 /// <param name = "includeSubnamespaces"> If set to true, will also include types from subnamespaces. </param>
 /// <returns> true if the component type is in the namespace. </returns>
 public BasedOnDescriptor InNamespace(string @namespace, bool includeSubnamespaces)
 {
     return(Where(Component.IsInNamespace(@namespace, includeSubnamespaces)));
 }