ScrGen.Icon.IcoContainer.Validate C# (CSharp) Method

Validate() private method

private Validate ( ) : void
return void
        private void Validate()
        {
            if (Directory == null)
                throw new InvalidOperationException("Directory is null");

            if (Images == null)
                throw new InvalidOperationException("Images are null");

            if (Directory.Entries.Length != Images.Length)
                throw new InvalidOperationException("Directory Entries count does not equal to Images count");
        }