AdvancedOCR.Step.SizeOf C# (CSharp) 메소드

SizeOf() 보호된 정적인 메소드

protected static SizeOf ( IList upstream ) : int
upstream IList
리턴 int
        protected static int SizeOf(IList<Step> upstream)
        {
            if (upstream == null || upstream.Count == 0) throw new ArgumentException();

            int length = upstream[0].Length;

            if (!upstream.All(step => step.Length == length)) throw new ArgumentException();

            return length;
        }