public static Type FindTypeByFullName( string fullName ) { return FindTypeByFullName( fullName, true ); }
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); }