Beispiel #1
0
            /// <summary>
            /// Use to check if the name is defined as the expected type
            /// </summary>
            public bool DefinedAs(string s, System.Type type)
            {
                if (Available(s))
                {
                    return(false);
                }

                if (variables.Exists(s) && variables.Get(s).GetType() == type)
                {
                    return(true);
                }
                else if (functions.Exists(s) && functions.Get(s).GetType() == type)
                {
                    return(true);
                }
                else if (namespaces.Exists(s) && namespaces.Get(s).GetType() == type)
                {
                    return(true);
                }

                return(false);
            }