protected override void Execute(CodeActivityContext context) { var ret = new System.Security.SecureString(); foreach (var c in InputValue.Get(context).ToCharArray()) { ret.AppendChar(c); } Result.Set(context, ret.Copy()); ret.Dispose(); }