SimpleVersion
Search Results for

    Show / Hide Table of Contents

    Class ShortBranchNameTokenRule

    Applies rules for the short branch name.

    Inheritance
    System.Object
    BaseBranchNameTokenRule
    ShortBranchNameTokenRule
    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 ShortBranchNameTokenRule : BaseBranchNameTokenRule, ITokenRule<string>

    Constructors

    | Improve this Doc View Source

    ShortBranchNameTokenRule()

    Initializes a new instance of the ShortBranchNameTokenRule class.

    Declaration
    public ShortBranchNameTokenRule()
    | Improve this Doc View Source

    ShortBranchNameTokenRule(String)

    Initializes a new instance of the ShortBranchNameTokenRule class.

    Declaration
    public ShortBranchNameTokenRule(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 ShortBranchNameTokenRule Instance { get; }
    Property Value
    Type Description
    ShortBranchNameTokenRule
    | 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