Table of Contents

Class CommentCollection

Namespace
Dynamicweb.Content.Commenting
Assembly
Dynamicweb.dll

A collection of Comment

public class CommentCollection : Collection<Comment>, IList<Comment>, ICollection<Comment>, IReadOnlyList<Comment>, IReadOnlyCollection<Comment>, IEnumerable<Comment>, IList, ICollection, IEnumerable
Inheritance
CommentCollection
Implements
Inherited Members
Extension Methods

Methods

GetCommentById(int)

Finds the comment with the specified id.

public Comment GetCommentById(int id)

Parameters

id int

The comment id.

Returns

Comment

GetRatingAverage()

Returns the average of the ratings in the collection with one decimal, i.e 3.2

public double GetRatingAverage()

Returns

double

GetTotalCount()

Gets the total number of comments and replies.

public int GetTotalCount()

Returns

int
To top