📄 iesi.collections.xml
字号:
<?xml version="1.0"?>
<doc>
<assembly>
<name>Iesi.Collections</name>
</assembly>
<members>
<member name="T:Iesi.Collections.DictionarySet">
<summary>
<p><c>DictionarySet</c> is an abstract class that supports the creation of new <c>Set</c>
types where the underlying data store is an <c>IDictionary</c> instance.</p>
<p>You can use any object that implements the <c>IDictionary</c> interface to hold set data.
You can define your own, or you can use one of the objects provided in the Framework.
The type of <c>IDictionary</c> you choose will affect both the performance and the behavior
of the <c>Set</c> using it. </p>
<p>To make a <c>Set</c> typed based on your own <c>IDictionary</c>, simply derive a
new class with a constructor that takes no parameters. Some <c>Set</c> implmentations
cannot be defined with a default constructor. If this is the case for your class,
you will need to override <c>Clone()</c> as well.</p>
<p>It is also standard practice that at least one of your constructors takes an <c>ICollection</c> or
an <c>ISet</c> as an argument.</p>
</summary>
</member>
<member name="T:Iesi.Collections.Set">
<summary><p>A collection that contains no duplicate elements. This class models the mathematical
<c>Set</c> abstraction, and is the base class for all other <c>Set</c> implementations.
The order of elements in a set is dependant on (a)the data-structure implementation, and
(b)the implementation of the various <c>Set</c> methods, and thus is not guaranteed.</p>
<p>None of the <c>Set</c> implementations in this library are guranteed to be thread-safe
in any way unless wrapped in a <c>SynchronizedSet</c>.</p>
<p>The following table summarizes the binary operators that are supported by the <c>Set</c> class.</p>
<list type="table">
<listheader>
<term>Operation</term>
<term>Description</term>
<term>Method</term>
<term>Operator</term>
</listheader>
<item>
<term>Union (OR)</term>
<term>Element included in result if it exists in either <c>A</c> OR <c>B</c>.</term>
<term><c>Union()</c></term>
<term><c>|</c></term>
</item>
<item>
<term>Intersection (AND)</term>
<term>Element included in result if it exists in both <c>A</c> AND <c>B</c>.</term>
<term><c>InterSect()</c></term>
<term><c>&</c></term>
</item>
<item>
<term>Exclusive Or (XOR)</term>
<term>Element included in result if it exists in one, but not both, of <c>A</c> and <c>B</c>.</term>
<term><c>ExclusiveOr()</c></term>
<term><c>^</c></term>
</item>
<item>
<term>Minus (n/a)</term>
<term>Take all the elements in <c>A</c>. Now, if any of them exist in <c>B</c>, remove
them. Note that unlike the other operators, <c>A - B</c> is not the same as <c>B - A</c>.</term>
<term><c>Minus()</c></term>
<term><c>-</c></term>
</item>
</list>
</summary>
</member>
<member name="T:Iesi.Collections.ISet">
<summary>
<p>A collection that contains no duplicate elements. This interface models the mathematical
<c>Set</c> abstraction.
The order of elements in a set is dependant on (a)the data-structure implementation, and
(b)the implementation of the various <c>Set</c> methods, and thus is not guaranteed.</p>
<p>None of the <c>Set</c> implementations in this library are guranteed to be thread-safe
in any way unless wrapped in a <c>SynchronizedSet</c>.</p>
<p>The following table summarizes the binary operators that are supported by the <c>Set</c> class.</p>
<list type="table">
<listheader>
<term>Operation</term>
<term>Description</term>
<term>Method</term>
</listheader>
<item>
<term>Union (OR)</term>
<term>Element included in result if it exists in either <c>A</c> OR <c>B</c>.</term>
<term><c>Union()</c></term>
</item>
<item>
<term>Intersection (AND)</term>
<term>Element included in result if it exists in both <c>A</c> AND <c>B</c>.</term>
<term><c>InterSect()</c></term>
</item>
<item>
<term>Exclusive Or (XOR)</term>
<term>Element included in result if it exists in one, but not both, of <c>A</c> and <c>B</c>.</term>
<term><c>ExclusiveOr()</c></term>
</item>
<item>
<term>Minus (n/a)</term>
<term>Take all the elements in <c>A</c>. Now, if any of them exist in <c>B</c>, remove
them. Note that unlike the other operators, <c>A - B</c> is not the same as <c>B - A</c>.</term>
<term><c>Minus()</c></term>
</item>
</list>
</summary>
</member>
<member name="M:Iesi.Collections.ISet.Union(Iesi.Collections.ISet)">
<summary>
Performs a "union" of the two sets, where all the elements
in both sets are present. That is, the element is included if it is in either <c>a</c> or <c>b</c>.
Neither this set nor the input set are modified during the operation. The return value
is a <c>Clone()</c> of this set with the extra elements added in.
</summary>
<param name="a">A collection of elements.</param>
<returns>A new <c>Set</c> containing the union of this <c>Set</c> with the specified collection.
Neither of the input objects is modified by the union.</returns>
</member>
<member name="M:Iesi.Collections.ISet.Intersect(Iesi.Collections.ISet)">
<summary>
Performs an "intersection" of the two sets, where only the elements
that are present in both sets remain. That is, the element is included if it exists in
both sets. The <c>Intersect()</c> operation does not modify the input sets. It returns
a <c>Clone()</c> of this set with the appropriate elements removed.
</summary>
<param name="a">A set of elements.</param>
<returns>The intersection of this set with <c>a</c>.</returns>
</member>
<member name="M:Iesi.Collections.ISet.Minus(Iesi.Collections.ISet)">
<summary>
Performs a "minus" of set <c>b</c> from set <c>a</c>. This returns a set of all
the elements in set <c>a</c>, removing the elements that are also in set <c>b</c>.
The original sets are not modified during this operation. The result set is a <c>Clone()</c>
of this <c>Set</c> containing the elements from the operation.
</summary>
<param name="a">A set of elements.</param>
<returns>A set containing the elements from this set with the elements in <c>a</c> removed.</returns>
</member>
<member name="M:Iesi.Collections.ISet.ExclusiveOr(Iesi.Collections.ISet)">
<summary>
Performs an "exclusive-or" of the two sets, keeping only the elements that
are in one of the sets, but not in both. The original sets are not modified
during this operation. The result set is a <c>Clone()</c> of this set containing
the elements from the exclusive-or operation.
</summary>
<param name="a">A set of elements.</param>
<returns>A set containing the result of <c>a ^ b</c>.</returns>
</member>
<member name="M:Iesi.Collections.ISet.Contains(System.Object)">
<summary>
Returns <c>true</c> if this set contains the specified element.
</summary>
<param name="o">The element to look for.</param>
<returns><c>true</c> if this set contains the specified element, <c>false</c> otherwise.</returns>
</member>
<member name="M:Iesi.Collections.ISet.ContainsAll(System.Collections.ICollection)">
<summary>
Returns <c>true</c> if the set contains all the elements in the specified collection.
</summary>
<param name="c">A collection of objects.</param>
<returns><c>true</c> if the set contains all the elements in the specified collection, <c>false</c> otherwise.</returns>
</member>
<member name="M:Iesi.Collections.ISet.Add(System.Object)">
<summary>
Adds the specified element to this set if it is not already present.
</summary>
<param name="o">The object to add to the set.</param>
<returns><c>true</c> is the object was added, <c>false</c> if it was already present.</returns>
</member>
<member name="M:Iesi.Collections.ISet.AddAll(System.Collections.ICollection)">
<summary>
Adds all the elements in the specified collection to the set if they are not already present.
</summary>
<param name="c">A collection of objects to add to the set.</param>
<returns><c>true</c> is the set changed as a result of this operation, <c>false</c> if not.</returns>
</member>
<member name="M:Iesi.Collections.ISet.Remove(System.Object)">
<summary>
Removes the specified element from the set.
</summary>
<param name="o">The element to be removed.</param>
<returns><c>true</c> if the set contained the specified element, <c>false</c> otherwise.</returns>
</member>
<member name="M:Iesi.Collections.ISet.RemoveAll(System.Collections.ICollection)">
<summary>
Remove all the specified elements from this set, if they exist in this set.
</summary>
<param name="c">A collection of elements to remove.</param>
<returns><c>true</c> if the set was modified as a result of this operation.</returns>
</member>
<member name="M:Iesi.Collections.ISet.RetainAll(System.Collections.ICollection)">
<summary>
Retains only the elements in this set that are contained in the specified collection.
</summary>
<param name="c">Collection that defines the set of elements to be retained.</param>
<returns><c>true</c> if this set changed as a result of this operation.</returns>
</member>
<member name="M:Iesi.Collections.ISet.Clear">
<summary>
Removes all objects from the set.
</summary>
</member>
<member name="P:Iesi.Collections.ISet.IsEmpty">
<summary>
Returns <c>true</c> if this set contains no elements.
</summary>
</member>
<member name="M:Iesi.Collections.Set.Union(Iesi.Collections.ISet)">
<summary>
Performs a "union" of the two sets, where all the elements
in both sets are present. That is, the element is included if it is in either <c>a</c> or <c>b</c>.
Neither this set nor the input set are modified during the operation. The return value
is a <c>Clone()</c> of this set with the extra elements added in.
</summary>
<param name="a">A collection of elements.</param>
<returns>A new <c>Set</c> containing the union of this <c>Set</c> with the specified collection.
Neither of the input objects is modified by the union.</returns>
</member>
<member name="M:Iesi.Collections.Set.Union(Iesi.Collections.ISet,Iesi.Collections.ISet)">
<summary>
Performs a "union" of two sets, where all the elements
in both are present. That is, the element is included if it is in either <c>a</c> or <c>b</c>.
The return value is a <c>Clone()</c> of one of the sets (<c>a</c> if it is not <c>null</c>) with elements of the other set
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -