System.IO.Abstractions.DriveInfoWrapper.DriveInfoWrapper C# (CSharp) Method

DriveInfoWrapper() public method

Initializes a new instance of the DriveInfoWrapper class, which acts as a wrapper for a drive info.
public DriveInfoWrapper ( DriveInfo instance )
instance DriveInfo The drive info.
        public DriveInfoWrapper(DriveInfo instance)
        {
            if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }

            this.instance = instance;
        }