Class NoteExtensions
Contains extension methods useful for working with Notes.
Inheritance
System.Object
NoteExtensions
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public static class NoteExtensions : object
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. |
System.String | predicate | The predicate. |
Returns
Type | Description |
---|---|
System.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. |
System.String | predicate | The predicate. |
Returns
Type | Description |
---|---|
Collection<System.String> |