Table of Contents

Class ChangeExtension

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

Represents an operator that changes the extension of each path string in the sequence.

public class ChangeExtension : Transform<string, string>
Inheritance
ChangeExtension
Inherited Members

Properties

Extension

Gets or sets the new extension, with or without a leading period. Specify null to remove any extension from the path.

public string Extension { get; set; }

Property Value

string

Methods

Process(IObservable<string>)

Changes the extension of each path string in an observable sequence.

public override IObservable<string> Process(IObservable<string> source)

Parameters

source IObservable<string>

A sequence of string values for which to change the extension.

Returns

IObservable<string>

A sequence of string values representing the path string with the changed extension, for each path in the original sequence.