示例#1
0
        void menu_Test_Click(object InObj, EventArgs InArgs)
        {
            string s1 = "+++,abc,&efg,&&&";
            string s2 = s1.SplitCharEncode(',', "&+");
            string s3 = s2.SplitCharDecode(',');

            MessageBox.Show(s1 + Environment.NewLine +
                            s2 + Environment.NewLine +
                            s3);



#if _NotUsed
            int    xx  = 25;
            string bb  = "25";
            Type   tp4 = bb.GetType();
            if (tp4.IsPrimitiveOrString( ) == true)
            {
                xx = 22;
            }

            Size sx = new Size( );
            Type t5 = sx.GetType( );
            if (t5.IsPrimitive == true)
            {
                xx = 88;
            }

            FrameworkType fw1 = new FrameworkType(TypeEnum.Int);
            Type          tp1 = fw1.GetSystemType();

            FrameworkType fw2 = new FrameworkType(TypeEnum.String);
            Type          tp2 = fw2.GetSystemType();

            FrameworkType fw3 = new FrameworkType("Size");
            Type          tp3 = fw3.GetSystemType();
#endif
        }