Ancestry.Daisy.Tests.Daisy.Component.SilverBulletHandlers.TimestampBeforeSilverBulletStatement.Link C# (CSharp) Method

Link() public method

public Link ( string statement ) : ILinkedStatement
statement string
return ILinkedStatement
        public ILinkedStatement Link(string statement)
        {
            var match = Regex.Match(statement, @"Timestamp before (\d*) year ago");
            if (!match.Success) return null;
            return new Linked(this, int.Parse(match.Groups[1].Value));
        }
TimestampBeforeSilverBulletStatement