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

FindTypeByFullName() public static méthode

public static FindTypeByFullName ( string fullName ) : Type
fullName string
Résultat System.Type
		public static Type FindTypeByFullName( string fullName )
		{
			return FindTypeByFullName( fullName, true );
		}

Same methods

ScriptCompiler::FindTypeByFullName ( string fullName, bool ignoreCase ) : 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