protected override void Execute(CodeActivityContext context) { string inputString = InputString.Get(context); string suffixString = SuffixString.Get(context); bool ignoreCase = IgnoreCase.Get(context); var result = inputString.AppendSuffixIfMissing(suffixString, ignoreCase); Result.Set(context, result); }
protected override void Execute(CodeActivityContext context) { string inputString = InputString.Get(context); string prefixString = PrefixString.Get(context); bool ignoreCase = IgnoreCase.Get(context); var result = inputString.RemovePrefix(prefixString, ignoreCase); Result.Set(context, result); }