Ejemplo n.º 1
0
 /// <summary>
 /// Computes the difference between this bag and the specified <paramref name="bag"/>.
 /// </summary>
 /// <param name="bag">The bag.</param>
 /// <returns>The difference between this bag and <paramref name="bag"/>.</returns>
 /// <exception cref="ArgumentNullException"><paramref name="bag"/> is a null reference (<c>Nothing</c> in Visual Basic).</exception>
 /// <example>
 /// <code source="..\..\Source\Examples\ExampleLibraryCSharp\DataStructures\General\BagExamples.cs" region="Subtract" lang="cs" title="The following example shows how to use the Subtract method."/>
 /// <code source="..\..\Source\Examples\ExampleLibraryVB\DataStructures\General\BagExamples.vb" region="Subtract" lang="vbnet" title="The following example shows how to use the Subtract method."/>
 /// </example>
 public Bag <T> Subtract(Bag <T> bag)
 {
     return(SubtractInternal(bag));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Computes the intersection between this <see cref="Bag{T}"/> and the specified <paramref name="bag"/>.
 /// </summary>
 /// <param name="bag">The bag.</param>
 /// <returns>The intersection between this <see cref="Bag{T}"/> and <paramref name="bag"/>.</returns>
 /// <exception cref="ArgumentNullException"><paramref name="bag"/> is a null reference (<c>Nothing</c> in Visual Basic).</exception>
 /// <example>
 /// <code source="..\..\Source\Examples\ExampleLibraryCSharp\DataStructures\General\BagExamples.cs" region="Intersection" lang="cs" title="The following example shows how to use the Intersection method."/>
 /// <code source="..\..\Source\Examples\ExampleLibraryVB\DataStructures\General\BagExamples.vb" region="Intersection" lang="vbnet" title="The following example shows how to use the Intersection method."/>
 /// </example>
 public Bag <T> Intersection(Bag <T> bag)
 {
     return(IntersectionInternal(bag));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Computes the union of this <see cref="Bag{T}"/> and the specified <paramref name="bag"/>.
 /// </summary>
 /// <param name="bag">The bag.</param>
 /// <returns>The union of this <see cref="Bag{T}"/> and <paramref name="bag"/>.</returns>
 /// <exception cref="ArgumentNullException"><paramref name="bag"/> is a null reference (<c>Nothing</c> in Visual Basic).</exception>
 /// <example>
 /// <code source="..\..\Source\Examples\ExampleLibraryCSharp\DataStructures\General\BagExamples.cs" region="Union" lang="cs" title="The following example shows how to use the Union method."/>
 /// <code source="..\..\Source\Examples\ExampleLibraryVB\DataStructures\General\BagExamples.vb" region="Union" lang="vbnet" title="The following example shows how to use the Union method."/>
 /// </example>
 public Bag <T> Union(Bag <T> bag)
 {
     return(UnionInternal(bag));
 }