protected override void ExecuteCrmWorkFlowActivity(CodeActivityContext context, LocalWorkflowContext localContext)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (localContext == null)
            {
                throw new ArgumentNullException(nameof(localContext));
            }

            string strToEncode   = StringToEncode.Get(context);
            string encodedString = WebUtility.HtmlEncode(strToEncode);

            EncodedString.Set(context, encodedString);
        }
        protected override void ExecuteCrmWorkFlowActivity(CodeActivityContext context, LocalWorkflowContext localContext)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (localContext == null)
            {
                throw new ArgumentNullException(nameof(localContext));
            }

            string stringToEncode = StringToEncode.Get(context);

            var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(stringToEncode);

            string b64EncodedString = Convert.ToBase64String(plainTextBytes);

            B64EncodedString.Set(context, b64EncodedString);
        }