/// <summary> /// 反转Base64 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnToUnBase64_Click(object sender, EventArgs e) { string strVal = txtBase64Origin.Text.Trim(); if (!string.IsNullOrEmpty(strVal)) { this.txtBase64Value.Clear(); if (!ValidHelper.IsBase64String(strVal)) { this.txtBase64Value.Text = "错误的[Base64]原数据!"; return; } this.txtBase64Value.Text = TypeHelper.ToBase64Decode(txtBase64Origin.Text.Trim()); } }