| TuContexts Class |
The same translation unit may occur in different places within a document, thus having different contexts.
Namespace: Sdl.LanguagePlatform.TranslationMemory
The TuContexts type exposes the following members.
| Name | Description | |
|---|---|---|
| TuContexts |
Initializes a new instance with default values.
| |
| TuContexts(TuContexts) |
Initializes a new instance of the TuContexts class from another instance.
|
| Name | Description | |
|---|---|---|
| Length |
Gets the number of contexts contained in this instance.
| |
| Values |
Gets or sets the collection of TuContext objects of this instance.
|
| Name | Description | |
|---|---|---|
| Add |
Adds a new context to the list, if it isn't already there.
| |
| AddRange(IEnumerableTuContext) |
Adds a collection of contexts to this instance without checking for duplicates.
| |
| AddRange(TuContexts) |
Adds the elements of another instance to the list of this instance without checking for duplicates.
| |
| Assign |
Assigns the elements of another instance to the list of this instance.
| |
| Clear |
Removes all the contexts from this instance.
| |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Equals(TuContexts) |
Determines if this instance is equivalent to another instance, i.e. they contain the same collection of contexts,
independent of order.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasValue |
Determines whether a context is already in the list.
| |
| HasValues |
Determines whether this instance contains all the contexts from another instance.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Merge(TuContext) |
Adds an element to the list if it doesn't already exist.
| |
| Merge(IEnumerableTuContext) |
Adds a collection of contexts to this instance if they don't already exist in the collection.
| |
| Merge(TuContexts) |
Adds the elements of another instance to the list of this instance if they don't already exist in the collection.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |