Show / Hide Table of Contents

Class SummaryFunction<T>

Defines a function that creates a summary item from a collection of items.

Inheritance
System.Object
SummaryFunction<T>
Implements
ISummaryFunction
Namespace: Stac.Extensions
Assembly: DotNetStac.dll
Syntax
public class SummaryFunction<T> : object, ISummaryFunction
Type Parameters
Name Description
T

The type of the items.

Constructors

| Improve this Doc View Source

SummaryFunction(IStacExtension, String, CreateSummary<T>)

Initializes a new instance of the SummaryFunction<T> class.

Declaration
public SummaryFunction(IStacExtension extension, string propertyName, CreateSummary<T> summaryFunction)
Parameters
Type Name Description
IStacExtension extension

The Stac Extension associated to the summary function.

System.String propertyName

The PropertyName of the summary function.

CreateSummary<T> summaryFunction

The summary function.

Properties

| Improve this Doc View Source

Extension

Gets the Stac Extension associated to the summary function.

Declaration
public IStacExtension Extension { get; }
Property Value
Type Description
IStacExtension
| Improve this Doc View Source

PropertyName

Gets the PropertyName of the summary function.

Declaration
public string PropertyName { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Summarize(IEnumerable<Object>)

Summarize the items.

Declaration
public IStacSummaryItem Summarize(IEnumerable<object> items)
Parameters
Type Name Description
IEnumerable<System.Object> items

The items to summarize.

Returns
Type Description
IStacSummaryItem

The summary item.

Implements

ISummaryFunction

Extension Methods

StacAccessorsHelpers.ToStringByAttributes(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX