예제 #1
0
 public static string Scrub(string text, ScrubType scrubType)
 {
     if(string.IsNullOrWhiteSpace(text))
     {
         return text;
     }
     switch(scrubType)
     {
         case ScrubType.Xml:
             return ScrubXml(text);
         case ScrubType.JSon:
             return ScrubJson(text);
     }
     return text;
 }
예제 #2
0
        public static string Scrub(string text, ScrubType scrubType)
        {
            if (string.IsNullOrWhiteSpace(text))
            {
                return(text);
            }
            switch (scrubType)
            {
            case ScrubType.Xml:
                return(ScrubXml(text));

            case ScrubType.JSon:
                return(ScrubJson(text));
            }
            return(text);
        }