Struct SectionReplacement<T>
- Namespace
- ChartTools.Extensions.Linq
- Assembly
- ChartTools.dll
public readonly struct SectionReplacement<T> : IEquatable<SectionReplacement<T>>
Type Parameters
T
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
public SectionReplacement(IEnumerable<T> Replacement, Predicate<T> StartReplace, Predicate<T> EndReplace, bool AddIfMissing)
Parameters
Replacement IEnumerable<T>
StartReplace Predicate<T>
EndReplace Predicate<T>
AddIfMissing bool
Properties
public bool AddIfMissing { get; init; }
Property Value
- bool
public Predicate<T> EndReplace { get; init; }
Property Value
- Predicate<T>
public IEnumerable<T> Replacement { get; init; }
Property Value
- IEnumerable<T>
public Predicate<T> StartReplace { get; init; }
Property Value
- Predicate<T>
Methods
public void Deconstruct(out IEnumerable<T> Replacement, out Predicate<T> StartReplace, out Predicate<T> EndReplace, out bool AddIfMissing)
Parameters
Replacement IEnumerable<T>
StartReplace Predicate<T>
EndReplace Predicate<T>
AddIfMissing bool
public bool Equals(SectionReplacement<T> other)
Parameters
other SectionReplacement<T>
Returns
- bool
public override bool Equals(object obj)
Parameters
obj object
Returns
- bool
public override int GetHashCode()
Returns
- int
public override string ToString()
Returns
- string
Operators
public static bool operator ==(SectionReplacement<T> left, SectionReplacement<T> right)
Parameters
left SectionReplacement<T>
right SectionReplacement<T>
Returns
- bool
public static bool operator !=(SectionReplacement<T> left, SectionReplacement<T> right)
Parameters
left SectionReplacement<T>
right SectionReplacement<T>
Returns
- bool