DanSerialiser/Reflection/CachingTypeAnalyser.cs
/// <summary>
/// If unable to resolve the type, this will throw an exception when ignoreAnyInvalidTypes is false; otherwise return null when it's true.
/// </summary>
If unable to resolve the type, this will throw an exception when ignoreAnyInvalidTypes is false; otherwise return null when it's true.
If unable to resolve the type this will throw an exception when ignoreAnyInvalidTypes is false ; otherwise return null when it ' s true .
public Type GetType(string typeName, bool ignoreAnyInvalidTypes)
		{
			if (string.IsNullOrWhiteSpace(typeName))
				throw new ArgumentException($"Null/blank {nameof(typeName)} specified");
			if (_typeLookupCache.TryGetValue(typeName, out var cachedResult))
				return cachedResult;
			return _typeLookupCache.GetOrAdd(typeName, _reader.GetType(typeName, ignoreAnyInvalidTypes));
		}
public Type GetType ( string typeName , bool ignoreAnyInvalidTypes ) { if ( string . IsNullOrWhiteSpace ( typeName ) ) throw new ArgumentException ( $" Null/blank  { nameof ( typeName ) }  specified " ) ; if ( _typeLookupCache . TryGetValue ( typeName , out var cachedResult ) ) return cachedResult ; return _typeLookupCache . GetOrAdd ( typeName , _reader . GetType ( typeName , ignoreAnyInvalidTypes ) ) ; }
If unable to resolve the type, this will throw an exception when ignoreAnyInvalidTypes is false; otherwise return null when it's true.
If unable to resolve the type this will throw an exception when ignoreAnyInvalidTypes is false ; otherwise return null when it ' s true .
typeName
string
ignoreAnyInvalidTypes
bool