Show / Hide Table of Contents

Class PatchHelpers

Patch helpers

Inheritance
System.Object
PatchHelpers
Namespace: Stac.Common
Assembly: DotNetStac.dll
Syntax
public static class PatchHelpers : object

Methods

| Improve this Doc View Source

Patch<T>(T, IDictionary<String, Object>)

Patches the specified stac object with a dictionary.

Declaration
public static T Patch<T>(this T stacObject, IDictionary<string, object> patch)
    where T : IStacObject
Parameters
Type Name Description
T stacObject

The stac object.

IDictionary<System.String, System.Object> patch

The patch.

Returns
Type Description
T

The patched stac object.

Type Parameters
Name Description
T

The type of the stac object.

| Improve this Doc View Source

Patch<T>(T, IStacObject)

Patches the specified stac object with another stac object.

Declaration
public static T Patch<T>(this T stacObject, IStacObject patch)
    where T : IStacObject
Parameters
Type Name Description
T stacObject

The stac object.

IStacObject patch

The patch.

Returns
Type Description
T

The patched stac object.

Type Parameters
Name Description
T

The type of the stac object.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX