Class NoteExtensions
Contains extension methods useful for working with Notes.
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public static class NoteExtensions
Methods
CombineNotes(Collection<Note>, Collection<Note>)
Combines two lists of notes.
Declaration
public static void CombineNotes(this Collection<Note> triples, Collection<Note> additions)
Parameters
Type | Name | Description |
---|---|---|
Collection<Note> | triples | A collection of notes. |
Collection<Note> | additions | The notes to be combined. |
GetFirstNoteValue(Collection<Note>, IdentifierTriple, string)
Gets the content of the first note corresponding to the specified object.
Declaration
public static string GetFirstNoteValue(this Collection<Note> triples, IdentifierTriple id, string predicate)
Parameters
Type | Name | Description |
---|---|---|
Collection<Note> | triples | A collection of notes that may refer to many different items. |
IdentifierTriple | id | The identifier of the item to which notes should apply. |
string | predicate | The predicate. |
Returns
Type | Description |
---|---|
string |
GetNoteValues(Collection<Note>, IdentifierTriple, string)
Gets a collection of notes associated with the specified object.
Declaration
public static Collection<string> GetNoteValues(this Collection<Note> triples, IdentifierTriple id, string predicate)
Parameters
Type | Name | Description |
---|---|---|
Collection<Note> | triples | A collection of notes that may refer to many different items. |
IdentifierTriple | id | The identifier of the item to which notes should apply. |
string | predicate | The predicate. |
Returns
Type | Description |
---|---|
Collection<string> |