CompositeGlob.Create(IEnumerable<IMSBuildGlob>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an IMSBuildGlob that aggregates multiple other globs such that the resulting glob matches when any inner glob matches (disjunction).
public:
static Microsoft::Build::Globbing::IMSBuildGlob ^ Create(System::Collections::Generic::IEnumerable<Microsoft::Build::Globbing::IMSBuildGlob ^> ^ globs);
public static Microsoft.Build.Globbing.IMSBuildGlob Create (System.Collections.Generic.IEnumerable<Microsoft.Build.Globbing.IMSBuildGlob> globs);
static member Create : seq<Microsoft.Build.Globbing.IMSBuildGlob> -> Microsoft.Build.Globbing.IMSBuildGlob
Public Shared Function Create (globs As IEnumerable(Of IMSBuildGlob)) As IMSBuildGlob
Parameters
- globs
- IEnumerable<IMSBuildGlob>
An enumeration of globs to compose.
Returns
The logical disjunction of the input globs.
Remarks
When globs
contains no elements, a singleton glob is returned that never matches, regardless of input.
When globs
contains one element, that single element is returned directly. This avoids allocating a redundant wrapper instance.