Pchp.Library.Streams.StreamWrapper.RegisterSystemWrapper C# (CSharp) Method

RegisterSystemWrapper() public static method

Register a new system wrapper
public static RegisterSystemWrapper ( StreamWrapper wrapper ) : bool
wrapper StreamWrapper An instance of the corresponding StreamWrapper descendant.
return bool
        public static bool RegisterSystemWrapper(StreamWrapper wrapper)
        {
            if (!systemStreamWrappers.ContainsKey(wrapper.Scheme))
            {
                systemStreamWrappers.Add(wrapper.Scheme, wrapper);
                return true;
            }
            return false;
        }