SimpleVersion
Search Results for

    Show / Hide Table of Contents

    Class BranchNameSuffixTokenRule

    Applies rules for the branch name suffix rule.

    Inheritance
    System.Object
    BaseBranchNameTokenRule
    BranchNameSuffixTokenRule
    Implements
    ITokenRule<System.String>
    Inherited Members
    BaseBranchNameTokenRule.Pattern
    BaseBranchNameTokenRule.Apply(IVersionContext, IEnumerable<String>)
    BaseBranchNameTokenRule.Resolve(IVersionContext, String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: SimpleVersion.Rules
    Assembly: SimpleVersion.Core.dll
    Syntax
    public class BranchNameSuffixTokenRule : BaseBranchNameTokenRule, ITokenRule<string>

    Constructors

    | Improve this Doc View Source

    BranchNameSuffixTokenRule()

    Initializes a new instance of the BranchNameSuffixTokenRule class.

    Declaration
    public BranchNameSuffixTokenRule()
    | Improve this Doc View Source

    BranchNameSuffixTokenRule(String)

    Initializes a new instance of the BranchNameSuffixTokenRule class.

    Declaration
    public BranchNameSuffixTokenRule(string pattern)
    Parameters
    Type Name Description
    System.String pattern

    The regular expression pattern to use when replacing characters.

    Properties

    | Improve this Doc View Source

    Instance

    Gets a default instance of the rule.

    Declaration
    public static BranchNameSuffixTokenRule Instance { get; }
    Property Value
    Type Description
    BranchNameSuffixTokenRule
    | Improve this Doc View Source

    Token

    Gets the token string.

    Declaration
    public override string Token { get; protected set; }
    Property Value
    Type Description
    System.String
    Overrides
    BaseBranchNameTokenRule.Token

    Methods

    | Improve this Doc View Source

    ResolveBranchName(IVersionContext)

    Resolves the branch name value for this rule.

    Declaration
    protected override string ResolveBranchName(IVersionContext context)
    Parameters
    Type Name Description
    IVersionContext context

    The VersionContext of the current calculation.

    Returns
    Type Description
    System.String

    The branch name value.

    Overrides
    BaseBranchNameTokenRule.ResolveBranchName(IVersionContext)

    Implements

    ITokenRule<T>

    Extension Methods

    TokenRuleExtensions.ResolveTokenRules<T>(T, IVersionContext, IEnumerable<ITokenRule<T>>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX