Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public WeaverQueryVal(object pValue)
        {
            Original = pValue;

            RawText   = pValue + "";
            FixedText = RawText;
            IsString  = (pValue is string);

            if (Original == null)
            {
                FixedText = "null";
            }

            /*else if ( IsString ) {
             *      FixedText = FixedText.Replace("'", "\\'");
             * }*/
            else if (Original is bool)
            {
                FixedText = RawText.ToLower();
            }
            else if (Original is double)
            {
                FixedText = RawText;
                //NumericSuffixText = RawText+"D";
            }
            else if (Original is float)
            {
                FixedText = RawText;
                //NumericSuffixText = RawText+"F";
            }
            else if (Original is long)
            {
                FixedText = RawText;
                //NumericSuffixText = RawText+"L";
            }
        }
Exemplo n.º 2
0
 public TaggedString ToLower()
 {
     return(new TaggedString(RawText.ToLower()));
 }