Conris.Utility/Strings.SysInfo.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;
//加密包
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;

namespace Conris.Utility.Strings
{
    /// <summary>
    /// String 的摘要说明
    /// </summary>
    public class SysInfo
    {
        /// <summary>
        /// 编码特殊字符
        /// </summary>
        /// <param name="Str"></param>
        /// <returns></returns>
        public static string EncodeString(string Str)
        {
            if (Str != null && Str != "")
            {
                Str = Str.Replace("&", "&amp;");
                Str = Str.Replace("'", "&#39;");
                Str = Str.Replace("\"", "&#34;");
                Str = Str.Replace("where", "wh&#101;re");
                Str = Str.Replace("select", "sel&#101;ct");
                Str = Str.Replace("insert", "$1ns&#101;rt");
                Str = Str.Replace("create", "$1r&#101;ate");
                Str = Str.Replace("drop", "$1ro&#112;");
                Str = Str.Replace("delete", "$1el&#101;te");
                Str = Str.Replace("update", "$1p&#100;ate");
                Str = Str.Replace("or", "$1o&#114;");
            }
            else
                Str = "";
            return Str;
        }
        /// <summary>
        /// 解码特殊字符
        /// </summary>
        /// <param name="Str"></param>
        /// <returns></returns>
        public static string UncodeString(string Str)
        {
            if (Str != null && Str != "")
            {

                Str = Str.Replace("&amp;", "&");
                Str = Str.Replace("&#39;", "'");
                Str = Str.Replace("&#34;", "\"");
后面还有 190 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。