Show / Hide Table of Contents

    Struct StringReplacePair

    Defines a oldValue/newValue pair that can be set or retrieved for string replace operations.

    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public struct StringReplacePair

    Constructors

    | Improve this Doc

    StringReplacePair(String, String)

    Initializes a new instance of the StringReplacePair struct.

    Declaration
    public StringReplacePair(string oldValue, string newValue)
    Parameters
    Type Name Description
    System.String oldValue

    The System.String value to be replaced.

    System.String newValue

    The System.String value to replace all occurrences of oldValue.

    Properties

    | Improve this Doc

    NewValue

    Gets the System.String value to replace all occurrences of OldValue.

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

    The System.String value to replace all occurrences of OldValue.

    | Improve this Doc

    OldValue

    Gets the System.String value to be replaced.

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

    The System.String value to be replaced.

    Methods

    | Improve this Doc

    Equals(StringReplacePair)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(StringReplacePair other)
    Parameters
    Type Name Description
    StringReplacePair other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc

    Equals(Object)

    Determines whether the specified System.Object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to this instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc

    ToString()

    Returns a string representation of the StringReplacePair, using the string representations of the oldValue and newValue.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation of the StringReplacePair, which includes the string representations of the oldValue and newValue.

    Overrides
    System.ValueType.ToString()
    Remarks

    The string representation consists of the string representations of the oldValue and newValue, separated by a comma and a space, and enclosed in square brackets. For example, the ToString method for a StringReplacePair structure with the string OldValue "Test1" and the string NewValue "Test2" returns the string "[Test1, Test2]".

    Operators

    | Improve this Doc

    Equality(StringReplacePair, StringReplacePair)

    Indicates whether two StringReplacePair instances are equal.

    Declaration
    public static bool operator ==(StringReplacePair replacePair1, StringReplacePair replacePair2)
    Parameters
    Type Name Description
    StringReplacePair replacePair1

    The first date interval to compare.

    StringReplacePair replacePair2

    The second date interval to compare.

    Returns
    Type Description
    System.Boolean

    true if the values of replacePair1 and replacePair2 are equal; otherwise, false.

    | Improve this Doc

    Inequality(StringReplacePair, StringReplacePair)

    Indicates whether two DateSpan instances are not equal.

    Declaration
    public static bool operator !=(StringReplacePair replacePair1, StringReplacePair replacePair2)
    Parameters
    Type Name Description
    StringReplacePair replacePair1

    The first date interval to compare.

    StringReplacePair replacePair2

    The second date interval to compare.

    Returns
    Type Description
    System.Boolean

    true if the values of replacePair1 and replacePair2 are not equal; otherwise, false.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX