Server.ScriptCompiler.FindTypeByFullName C# (CSharp) Méthode

FindTypeByFullName() public static méthode

public static FindTypeByFullName ( string fullName, bool ignoreCase ) : Type
fullName string
ignoreCase bool
Résultat System.Type
		public static Type FindTypeByFullName( string fullName, bool ignoreCase )
		{
			Type type = null;

			for( int i = 0; type == null && i < m_Assemblies.Length; ++i )
				type = GetTypeCache( m_Assemblies[i] ).GetTypeByFullName( fullName, ignoreCase );

			if( type == null )
				type = GetTypeCache( Core.Assembly ).GetTypeByFullName( fullName, ignoreCase );

			return type;
		}

Same methods

ScriptCompiler::FindTypeByFullName ( string fullName ) : Type

Usage Example

        public static Type ReadType(this GenericReader reader)
        {
            if (!reader.ReadBool())
            {
                return(null);
            }

            bool   full = reader.ReadBool();
            string name = reader.ReadString();

            if (String.IsNullOrWhiteSpace(name))
            {
                return(null);
            }

            Type type = Type.GetType(name, false) ??
                        (full ? ScriptCompiler.FindTypeByFullName(name) : ScriptCompiler.FindTypeByName(name));

            return(type);
        }
All Usage Examples Of Server.ScriptCompiler::FindTypeByFullName