IsMatch() 공개 메소드

public IsMatch ( Type type ) : bool
type System.Type
리턴 bool
예제 #1
0
        private static CategoryEntry GetDeepestMatch( CategoryEntry root, Type type )
        {
            if( !root.IsMatch( type ) )
                return null;

            for( int i = 0; i < root.SubCategories.Length; ++i )
            {
                CategoryEntry check = GetDeepestMatch( root.SubCategories[i], type );

                if( check != null )
                    return check;
            }

            return root;
        }
예제 #2
0
        private static CategoryEntry GetDeepestMatch(CategoryEntry root, Type type)
        {
            if (!root.IsMatch(type))
            {
                return(null);
            }

            for (int i = 0; i < root.SubCategories.Length; ++i)
            {
                CategoryEntry check = GetDeepestMatch(root.SubCategories[i], type);

                if (check != null)
                {
                    return(check);
                }
            }

            return(root);
        }
예제 #3
0
		private static CategoryEntry GetDeepestMatch( CategoryEntry root, Type type )
		{
			if ( !root.IsMatch( type ) )
				return null;

			for ( int i = 0; i < root.SubCategories.Length; ++i )
			{
				CategoryEntry check = GetDeepestMatch( root.SubCategories[i], type );

				if ( check != null )
					return check;
			}

			return root;
		}