예제 #1
0
        public static T?TryParse <T>(this string s) where T : struct
        {
            if (s != null)
            {
                if (typeof(T).IsEnum)
                {
                    return(Enum.IsDefined(typeof(T), s) ? (T)Enum.Parse(typeof(T), s) : (T?)null);
                }
                else if (typeof(T) == typeof(AutoBoolean))
                {
                    AutoBoolean result;
                    if (AutoBoolean.TryParse(s, out result))
                    {
                        return((T)(object)result);
                    }
                    else
                    {
                        return(null);
                    }
                }
                else
                {
                    var parsed = Convert.ChangeType(s, typeof(T));

                    if (parsed != null)
                    {
                        return((T)parsed);
                    }
                }
            }

            return(null);
        }
예제 #2
0
        private void cac39076a0a300436ec8a3a1fe9b2fcda()
        {
            this.cd3827007acc399b34f956117869414d0 = 150;
            this.c2c722cb7e32a87966531a1e4c598d61d = 60;
            this.cd0f713933438f34835b01297433a8a7f = AutoBoolean.Auto;
            this.ce4d2f1b450cdabfd1f0f4f28ea6b3800 = AutoBoolean.False;
            string text1 = c0bbbfa1d3eac60244be07cb7c7058941.c47c07faa149539febe2a8e1f978fa8dd(0x273b);

            this.c924a7adae948f7734a40ae82ec69a136 = text1;
            string text2 = c0bbbfa1d3eac60244be07cb7c7058941.c47c07faa149539febe2a8e1f978fa8dd(0x2754);

            this.c2bbc876fadd7032d696b137bfa5c2a9c = text2;
            this.cc3d6949ec78400327ca47995273eba25 = string.Empty;
            this.c9363b2573ec6976255b107de9714a88d = this.c4ccb15ae364b5bb64fd18a538f12488d = this.cbd69662b502356b5738f77fa62d8caa9 = this.c98d2bb12edb2dcd34d12b0d266c30ae4 = this.ce61c1bfa143f12ef54e4723680141300 = AutoBoolean.Auto;
            this.ce01eec33f178a777b002386272adadf9 = this.ccc0f6bd83b90e0c6dad93b05402e740e = this.c0f183e8414cb94885adce81249b7b97b = this.c82fb15376ca8f128e6c409e924aa288f = this.c7c201e0755dc3bdf39293fd8f4ec10a9 = AutoBoolean.Auto;
            this.c00649d7e6c9adb59ef7fd8dacf8c34ae = WizardPageType.Inner;
        }
예제 #3
0
 public ToolbarNode(AutoBoolean enable, string texture)
 {
     Enable  = enable;
     Texture = texture;
 }
예제 #4
0
 public AppLauncherNode(AutoBoolean enable, string texture)
 {
     Enable  = enable;
     Texture = texture;
 }