Alexandria.Engines.Unreal.Core.RootObject.GetReaderSingleton C# (CSharp) Метод

GetReaderSingleton() публичный статический Метод

Call the initializer on a DataProcessor-derived Type and return it, cached.
public static GetReaderSingleton ( Type readerType ) : DataProcessor
readerType System.Type The -derived to construct.
Результат DataProcessor
        public static DataProcessor GetReaderSingleton(Type readerType)
        {
            DataProcessor result;

            if(!ReaderSingletonDictionary.TryGetValue(readerType, out result))
                result = ReaderSingletonDictionary[readerType] = (DataProcessor)readerType.GetConstructor(Type.EmptyTypes).Invoke(null);
            return result;
        }