Show / Hide Table of Contents

Class NoteExtensions

Contains extension methods useful for working with Notes.

Inheritance
object
NoteExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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>
In this article
Back to top Generated by DocFX